In rfc2612 it is said about 504Gateway Timeout that :
The server, while acting as a gateway or proxy, did not receive a
timely response from the upstream server specified by the URI (e.g.
HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed
to access in attempting to complete the request.
The server, while acting as a gateway or proxy, received an invalid
response from the upstream server it accessed in attempting to
fulfill the request.
I think the correct status code is 504 when upstream don't produce a response back to mighttpd in a reasonable time.
I have checked the source code of mighttpd but found nothing about it.
Is the status code handled in some libraries which mighttpd depends on?
In rfc2612 it is said about 504 Gateway Timeout that :
And 502 Bad Gateway:
I think the correct status code is 504 when upstream don't produce a response back to mighttpd in a reasonable time. I have checked the source code of mighttpd but found nothing about it. Is the status code handled in some libraries which mighttpd depends on?