# com.google.api.server.spi.response

# Package com.google.api.server.spi.response

-

  | Class | Description |
  |---|---|
  | [BadRequestException](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/BadRequestException.html "class in com.google.api.server.spi.response") | Bad request exception that is mapped to a 400 response. |
  | [CollectionResponse](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/CollectionResponse.html "class in com.google.api.server.spi.response")\<T\> | Collection response to be returned by an endpoint implementation method that wants to support pagination (and other metadata about returned collection in the future). |
  | [CollectionResponse.Builder](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/CollectionResponse.Builder.html "class in com.google.api.server.spi.response")\<T\> | Builder for [`CollectionResponse`](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/CollectionResponse.html "class in com.google.api.server.spi.response"). |
  | [ConflictException](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ConflictException.html "class in com.google.api.server.spi.response") | Conflict exception that is mapped to a 409 response. |
  | [ForbiddenException](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ForbiddenException.html "class in com.google.api.server.spi.response") | Forbidden exception that is mapped to a 403 response. |
  | [InternalServerErrorException](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/InternalServerErrorException.html "class in com.google.api.server.spi.response") | Internal server exception that is mapped to a 500 response. |
  | [NotFoundException](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/NotFoundException.html "class in com.google.api.server.spi.response") | Not found exception that is mapped to a 404 response. |
  | [ServiceUnavailableException](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ServiceUnavailableException.html "class in com.google.api.server.spi.response") | Service Unavailable response for the API, mapped to a HTTP 503 response. |
  | [UnauthorizedException](https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/UnauthorizedException.html "class in com.google.api.server.spi.response") | Unauthorized exception that is mapped to a 401 response. |
  [Class Summary]