Adding error code from api request to Model#errors.