Added HTTP status codes to errors