Our application responds quite differently based on the Accept
header you use. For all Public API Routes, one should specify Accept: application/json
in order to get useful response types and relevant error messages.
Omitting this Header may for instance result in being given a 200
response for bad requests and an HTML body instead of an informative JSON
response with an error message that would help you to troubleshoot the issue with the request.
In the following example, the Bearer token is missing, and the response is less than helpful.
With the Accept
Header set, we get a more useful response.