You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/errors.md
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,6 @@ API Platform automatically sends the appropriate HTTP status code to the client:
6
6
unexpected ones. It also provides a description of the error in [the Hydra error format](https://www.hydra-cg.com/spec/latest/core/#description-of-http-status-codes-and-errors)
7
7
or in the format described in the [RFC 7807](https://tools.ietf.org/html/rfc7807), depending of the format selected during the [content negotiation](content-negotiation.md).
8
8
9
-
# Errors
10
-
11
9
## Backward compatibility with < 3.1
12
10
13
11
Use the following configuration:
@@ -174,7 +172,7 @@ the global config.
174
172
175
173
## Control your exceptions
176
174
177
-
With `rfc_7807_compliant_errors` a few things happen. First Hydra exception are compatible with the JSON Problem specification. Default exception that are handled by API Platform in JSON will be returned as `application/problem+json`.
175
+
With `rfc_7807_compliant_errors` a few things happen. First Hydra exception are compatible with the JSON Problem specification. Default exception that are handled by API Platform in JSON will be returned as `application/problem+json`.
178
176
179
177
To customize the API Platform response, replace the `api_platform.state.error_provider` with your own provider:
0 commit comments