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.
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.