2727import java .util .stream .Collectors ;
2828import org .apache .hc .core5 .http .ContentType ;
2929import org .apache .hc .core5 .http .HttpHeaders ;
30- import org .apache .iceberg .exceptions .AlreadyExistsException ;
31- import org .apache .iceberg .exceptions .CommitFailedException ;
32- import org .apache .iceberg .exceptions .CommitStateUnknownException ;
33- import org .apache .iceberg .exceptions .ForbiddenException ;
34- import org .apache .iceberg .exceptions .NamespaceNotEmptyException ;
35- import org .apache .iceberg .exceptions .NoSuchIcebergTableException ;
36- import org .apache .iceberg .exceptions .NoSuchNamespaceException ;
37- import org .apache .iceberg .exceptions .NoSuchTableException ;
38- import org .apache .iceberg .exceptions .NoSuchViewException ;
39- import org .apache .iceberg .exceptions .NotAuthorizedException ;
40- import org .apache .iceberg .exceptions .UnprocessableEntityException ;
41- import org .apache .iceberg .exceptions .ValidationException ;
30+ import org .apache .iceberg .exceptions .*;
4231import org .apache .iceberg .relocated .com .google .common .collect .ImmutableMap ;
4332import org .apache .iceberg .relocated .com .google .common .io .CharStreams ;
4433import org .apache .iceberg .rest .HTTPRequest ;
@@ -64,6 +53,7 @@ public class RESTCatalogServlet extends HttpServlet {
6453 .put (NoSuchTableException .class , 404 )
6554 .put (NoSuchViewException .class , 404 )
6655 .put (NoSuchIcebergTableException .class , 404 )
56+ .put (NotFoundException .class , 404 )
6757 .put (UnsupportedOperationException .class , 406 )
6858 .put (AlreadyExistsException .class , 409 )
6959 .put (CommitFailedException .class , 409 )
0 commit comments