ajax - It's a good idea to use error HTTP response codes different to 200 when an error occurs in server side? -


i understand restful api must return http codes according client request , server processing, when processing ajax request json response (form processing/validation, page status, etc...) should return specific http error code or 200 http code error message json?

some browsers have extensions catch http response code header , times overwrite server response custom error pages (like worlderror.org). avoid this, 200 response server sends.

it's method response error codes server when client browser?

i know ajax success , error methods catch errors javascript, there man-in-the-middle changes response.

i have read lot of stackoverflow questions http responses, focused how manage error responses , not if it's idea use http codes when response can altered.

others is considered practice return code different 200 controllers, in order trigger ajax error? not explained response practice.

restful api: client --> server --> client
ajax request: client --> browser --> server --> browser --> client

finally, question stackoverflow?


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -