I would like to ask ESRI stuff when they are going to fix the bug where SOE returns https status code 200 always. It breaks all the js frameworks that use SOE REST interface. The best practice would be to control what code and how the error message would look like other than
We do not use pjson , that is accepting 200 only. There are other output formats that need correct behavior.