On Mon, 12 May 2014, Lord Nynex wrote:

Justink101,

Using the echo module

error_page 404 @404;
location @404 { echo '{"status": "Not Found"}'; }

if your using proxy_pass, don't forget:

proxy_intercept_errors on;

Matthias

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to