Added HTTP status codes for failures