# Uses of Interface
org.springframework.web.ErrorResponse

Packages that use ErrorResponse
Package
Description
org.springframework.web
Common, generic interfaces that define minimal boundary points between Spring's web infrastructure and other framework modules.
org.springframework.web.bind
Provides web-specific data binding functionality.
org.springframework.web.bind.support
Support classes for web data binding.
org.springframework.web.context.request.async
Support for asynchronous request processing.
org.springframework.web.method.annotation
Support classes for annotation-based handler method processing.
org.springframework.web.multipart
Multipart resolution framework for handling file uploads.
org.springframework.web.multipart.support
Support classes for the multipart resolution framework.
org.springframework.web.server
Core interfaces and classes for Spring's generic, reactive web support.

## Uses of ErrorResponse in org.springframework.web

Classes in org.springframework.web that implement ErrorResponse
Modifier and Type
Class
Description
`class`
`ErrorResponseException`
`RuntimeException` that implements `ErrorResponse` to expose an HTTP status, response headers, and a body formatted as an RFC 9457 `ProblemDetail`.
`class`
`HttpMediaTypeException`
Abstract base for exceptions related to media types.
`class`
`HttpMediaTypeNotAcceptableException`
Exception thrown when the request handler cannot generate a response that is acceptable by the client.
`class`
`HttpMediaTypeNotSupportedException`
Exception thrown when a client POSTs, PUTs, or PATCHes content of a type not supported by request handler.
`class`
`HttpRequestMethodNotSupportedException`
Exception thrown when a request handler does not support a specific request method.
Methods in org.springframework.web that return ErrorResponse
Modifier and Type
Method
Description
`ErrorResponse`
ErrorResponse.Builder.`build()`
Build the `ErrorResponse` instance.
`default ErrorResponse`
ErrorResponse.Builder.`build(org.springframework.context.MessageSource messageSource, Locale locale)`
Build the `ErrorResponse` instance and also resolve the "detail" and "title" through the given `MessageSource`.
`static ErrorResponse`
ErrorResponse.`create(Throwable ex, HttpStatusCode statusCode, String detail)`
Static factory method to build an instance via `builder(Throwable, HttpStatusCode, String)`.
Methods in org.springframework.web with parameters of type ErrorResponse
Modifier and Type
Method
Description
`void`
ErrorResponse.Interceptor.`handleError(ProblemDetail detail, ErrorResponse errorResponse)`
Handle the given `ProblemDetail` that's going to be rendered, and the `ErrorResponse` it originates from, if applicable.

## Uses of ErrorResponse in org.springframework.web.bind

Classes in org.springframework.web.bind that implement ErrorResponse
Modifier and Type
Class
Description
`class`
`MethodArgumentNotValidException`
`BindException` to be thrown when validation on an argument annotated with `@Valid` fails.
`class`
`MissingMatrixVariableException`
`ServletRequestBindingException` subclass that indicates that a matrix variable expected in the method parameters of an `@RequestMapping` method is not present among the matrix variables extracted from the URL.
`class`
`MissingPathVariableException`
`ServletRequestBindingException` subclass that indicates that a path variable expected in the method parameters of an `@RequestMapping` method is not present among the URI variables extracted from the URL.
`class`
`MissingRequestCookieException`
`ServletRequestBindingException` subclass that indicates that a request cookie expected in the method parameters of an `@RequestMapping` method is not present.
`class`
`MissingRequestHeaderException`
`ServletRequestBindingException` subclass that indicates that a request header expected in the method parameters of an `@RequestMapping` method is not present.
`class`
`MissingRequestValueException`
Base class for `ServletRequestBindingException` exceptions that could not bind because the request value is required but is either missing or otherwise resolves to `null` after conversion.
`class`
`MissingServletRequestParameterException`
`ServletRequestBindingException` subclass that indicates a missing parameter.
`class`
`ServletRequestBindingException`
Fatal binding exception, thrown when we want to treat binding exceptions as unrecoverable.
`class`
`UnsatisfiedServletRequestParameterException`
`ServletRequestBindingException` subclass that indicates an unsatisfied parameter condition, as typically expressed using an `@RequestMapping` annotation at the `@Controller` type level.

## Uses of ErrorResponse in org.springframework.web.bind.support

Classes in org.springframework.web.bind.support that implement ErrorResponse
Modifier and Type
Class
Description
`class`
`WebExchangeBindException`
`ServerWebInputException` subclass that indicates a data binding or validation failure.

## Uses of ErrorResponse in org.springframework.web.context.request.async

Classes in org.springframework.web.context.request.async that implement ErrorResponse
Modifier and Type
Class
Description
`class`
`AsyncRequestTimeoutException`
Exception to be thrown when an async request times out.

## Uses of ErrorResponse in org.springframework.web.method.annotation

Classes in org.springframework.web.method.annotation that implement ErrorResponse
Modifier and Type
Class
Description
`class`
`HandlerMethodValidationException`
`ResponseStatusException` that is also `MethodValidationResult`.

## Uses of ErrorResponse in org.springframework.web.multipart

Classes in org.springframework.web.multipart that implement ErrorResponse
Modifier and Type
Class
Description
`class`
`MaxUploadSizeExceededException`
MultipartException subclass thrown when an upload exceeds the maximum upload size allowed.

## Uses of ErrorResponse in org.springframework.web.multipart.support

Classes in org.springframework.web.multipart.support that implement ErrorResponse
Modifier and Type
Class
Description
`class`
`MissingServletRequestPartException`
Signals the part of a "multipart/form-data" request, identified by name could not be found.

## Uses of ErrorResponse in org.springframework.web.server

Classes in org.springframework.web.server that implement ErrorResponse
Modifier and Type
Class
Description
`class`
`MethodNotAllowedException`
Exception for errors that fit response status 405 (method not allowed).
`class`
`MissingRequestValueException`
`ServerWebInputException` subclass that indicates a missing request value such as a request header, cookie value, query parameter, etc.
`class`
`NotAcceptableStatusException`
Exception for errors that fit response status 406 (not acceptable).
`class`
`PayloadTooLargeException`
Exception for errors that fit response status 413 (payload too large) for use in Spring Web applications.
`class`
`ResponseStatusException`
Subclass of `ErrorResponseException` that accepts a "reason", and by default maps that to the `"detail"` of the `ProblemDetail`.
`class`
`ServerErrorException`
Exception for an `HttpStatus.INTERNAL_SERVER_ERROR` that exposes extra information about a controller method that failed, or a controller method argument that could not be resolved.
`class`
`ServerWebInputException`
Exception for errors that fit response status 400 (bad request) for use in Spring Web applications.
`class`
`UnsatisfiedRequestParameterException`
`ServerWebInputException` subclass that indicates an unsatisfied parameter condition, as typically expressed using an `@RequestMapping` annotation at the `@Controller` type level.
`class`
`UnsupportedMediaTypeStatusException`
Exception for errors that fit response status 415 (unsupported media type).