|
|
|
|
|
by Izkata
657 days ago
|
|
For example: Apache (httpd) replaces the 4xx and 5xx response body with its own content instead of whatever you'd returned from an external handler like wsgi. You have to use a 2xx (except for 204) to get a relevant error message back out. |
|
This is the default behavior. Apache httpd can be configured to produce different responses by way of ErrorDocument[0]. From the documentation:
HTH0 - https://httpd.apache.org/docs/trunk/custom-error.html