Correct API error response codes.