Custom error code in nginx

In some cases, we might need to throw a custom/different error code for a specific issue. For example, we can throw a different error to the end user even if the backend node is down. We can do that in nginx as in the example below. server {     listen       8080;     server_name;     error_page   502 503 504 =204 /temperror; … Read moreCustom error code in nginx