Access denied and Page not found responses + Content API


My website has a Page type to show exceptions and displays 404 or 403 based on result. Based on this, when a third party tries to query content from my site using Content API,

If the content doesn't exist, we send back 200 response with Exception page type with 404 information and similar thing for 403. How do I not send 200 and other info and just send Json 404 or 403 error in these cases.

Jun 02, 2020 16:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.