Skip to content

Commit 0689a40

Browse files
committed
lint
1 parent bce5bcc commit 0689a40

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/errors.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ API Platform automatically sends the appropriate HTTP status code to the client:
66
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)
77
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).
88

9-
# Errors
10-
119
## Backward compatibility with < 3.1
1210

1311
Use the following configuration:
@@ -174,7 +172,7 @@ the global config.
174172

175173
## Control your exceptions
176174

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`.
178176

179177
To customize the API Platform response, replace the `api_platform.state.error_provider` with your own provider:
180178

0 commit comments

Comments
 (0)