# Uses of Interface
org.springframework.web.ErrorResponse.Builder

Packages that use ErrorResponse.Builder
Package
Description
org.springframework.web
Common, generic interfaces that define minimal boundary points between Spring's web infrastructure and other framework modules.

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

Methods in org.springframework.web that return ErrorResponse.Builder
Modifier and Type
Method
Description
`static ErrorResponse.Builder`
ErrorResponse.`builder(Throwable ex, HttpStatusCode statusCode, String detail)`
Return a builder to create an `ErrorResponse` instance.
`static ErrorResponse.Builder`
ErrorResponse.`builder(Throwable ex, ProblemDetail problemDetail)`
Variant of `ErrorResponse.builder(Throwable, HttpStatusCode, String)` for use with a custom `ProblemDetail` instance.
`ErrorResponse.Builder`
ErrorResponse.Builder.`detail(String detail)`
Set the underlying `detail`.
`ErrorResponse.Builder`
ErrorResponse.Builder.`detailMessageArguments(Object... messageArguments)`
Set the arguments to provide to the `MessageSource` lookup for `detailMessageCode(String)`.
`ErrorResponse.Builder`
ErrorResponse.Builder.`detailMessageCode(String messageCode)`
Customize the `MessageSource` code to use to resolve the value for the `detail(String)`.
`ErrorResponse.Builder`
ErrorResponse.Builder.`header(String headerName, String... headerValues)`
Add the given header value(s) under the given name.
`ErrorResponse.Builder`
ErrorResponse.Builder.`headers(Consumer<HttpHeaders> headersConsumer)`
Manipulate this response's headers with the given consumer.
`ErrorResponse.Builder`
ErrorResponse.Builder.`instance(URI instance)`
Set the underlying `instance` field.
`ErrorResponse.Builder`
ErrorResponse.Builder.`property(String name, Object value)`
Set a "dynamic" `property` on the underlying `ProblemDetail`.
`ErrorResponse.Builder`
ErrorResponse.Builder.`title(String title)`
Set the underlying `title` field.
`ErrorResponse.Builder`
ErrorResponse.Builder.`titleMessageCode(String messageCode)`
Customize the `MessageSource` code to use to resolve the value for `ProblemDetail.setTitle(String)`.
`ErrorResponse.Builder`
ErrorResponse.Builder.`type(URI type)`
Set the underlying `type` field.
`ErrorResponse.Builder`
ErrorResponse.Builder.`typeMessageCode(String messageCode)`
Customize the `MessageSource` code to use to resolve the value for `ProblemDetail.setType(URI)`.