Skip to content

Commit addb211

Browse files
Fix #1330: update doc about errors handled by API Platform only on resources
1 parent 9b049f4 commit addb211

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/errors.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ or in the format described in the [RFC 7807](https://tools.ietf.org/html/rfc7807
88

99
## Converting PHP Exceptions to HTTP Errors
1010

11-
The framework also allows you configure the HTTP status code sent to the clients when custom exceptions are thrown.
11+
The framework also allows you to configure the HTTP status code sent to the clients when custom exceptions are thrown
12+
on an API Platform resource operation.
1213

1314
In the following example, we throw a domain exception from the business layer of the application and
1415
configure API Platform to convert it to a `404 Not Found` error:

0 commit comments

Comments
 (0)