please, consider returning http error codes instead of internal error co...

...des in the returned JSON

it's much harder to identify, track and debug proxy configuration problems, as they are invisible in browser developer tools unless you look at the actual content of responses