nginx returns html instead of json response

Francis Daly francis at
Wed Nov 23 18:09:24 UTC 2022

On Wed, Nov 23, 2022 at 11:27:35PM +0530, Kaushal Shriyan wrote:
> On Wed, Nov 23, 2022 at 11:20 PM Francis Daly <francis at> wrote:

Hi there,

> I am not sure about this line  error_page 555 /dummyfile; what does 555
> code mean and what will be the contents of dummyfile?
> location ^~ /apis/ {
>                 fastcgi_intercept_errors off;
>                 error_page 555 /dummyfile;
>                 fastcgi_pass;
>                 include fastcgi.conf;
>                 fastcgi_param SCRIPT_FILENAME
> /var/www/html/gsmaidp/web/index.php;
>         }

I thought I had explained it in the previous mails?

555 is an error code that you do not care about (because you do not
expect to see it).

You can remove either the "error_page" or the "fastcgi_intercept_errors"
line (or leave them both in).

What happened when you tried it?

Francis Daly        francis at

More information about the nginx mailing list