Update custom-errors.md

Fix grammatical errors
This commit is contained in:
Sam Fleming 2018-04-27 16:24:05 +01:00 committed by GitHub
parent 22f78325b7
commit ce9d42b52d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,9 +6,9 @@ Each request to the default backend includes two headers:
- `X-Code` indicates the HTTP code to be returned to the client. - `X-Code` indicates the HTTP code to be returned to the client.
- `X-Format` the value of the `Accept` header. - `X-Format` the value of the `Accept` header.
**Important:** the custom backend must return the correct HTTP status code to be returned. NGINX do not changes the response from the custom default backend. **Important:** The custom backend must return the correct HTTP status code to be returned. NGINX does not change the response from the custom default backend.
Using this two headers is possible to use a custom backend service like [this one](https://github.com/kubernetes/ingress-nginx/tree/master/images/custom-error-pages) that inspect each request and returns a custom error page with the format expected by the client. Please check the example [custom-errors](https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-errors) Using these two headers it's possible to use a custom backend service like [this one](https://github.com/kubernetes/ingress-nginx/tree/master/images/custom-error-pages) that inspects each request and returns a custom error page with the format expected by the client. Please check the example [custom-errors](https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-errors).
NGINX sends additional headers that can be used to build custom response: NGINX sends additional headers that can be used to build custom response: