Add a status code to error response.