Changed to match error codes returned from API