i have php application has router should have 2 default handlers 401 unauthorized , 404 not found.
but happen no handlers set 2 cases. in case, need have default response tells request unhandled, have set response code 400 bad request, feel not appropriate.
what response code should use unhandled request?
4xx client's problem. 5xx (server-side) problem. if cannot handle request - http 5xx.
in case looks 501 not implemented best fit.
references:
Comments
Post a Comment