Improve documentation format
This commit is contained in:
parent
69fce01325
commit
2f6f9a29ba
15 changed files with 163 additions and 146 deletions
|
|
@ -6,7 +6,8 @@ Each request to the default backend includes two headers:
|
|||
- `X-Code` indicates the HTTP code to be returned to the client.
|
||||
- `X-Format` the value of the `Accept` header.
|
||||
|
||||
**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.
|
||||
!!! 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 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).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue