Added HTTP status code to errors