Pass HTTP error code further to the client