Varnish Live

Error handling

It is very important that we provide correct information when an error occurs so that users are guided to the right information in getting the app configured and running as expected. It is strongly recommended that the following HTTP Status Codes be returned:

  • 200: for success

  • 401: for invalid authentication

  • 404: for resource not found

  • 405: for methods not allowed

See the VCL example.

We highly discourage 3XX redirects.