Rest service basic auth: 404 scenerio

1
  In Rest service basic auth, when user is not having access to resource, system is returing error as 404 "Resource not found for". On local , system is returning response with content type as JSON but on deployed version, content type is html in case of 404. Why there is discrepancy on local and deployed version?   If its because of custom error page, then For Rest Service, there should be content type as json in case of 404 .
asked
2 answers
0

The change is probably caused by the Mendix proxy-server.

answered
0

Returning text/html in the body of a 404 Not Found responds seems to be common.

For instance GET https://www.google.com/not-there.png gives you a 404 with Content-Type: text/html (and not image/png)

answered