FIELD_REQUIRED | 422 | A required value is missing |
FIELD_UNKNOWN | 422 | A key that is not in the schema: a misspelling, a camelCase name, or a read-only field such as edition |
FIELD_INVALID_ENUM_VALUE | 422 | A value not in the allowed list (gender, NI letter, worker type, …) |
FIELD_STRING_TOO_SHORT, FIELD_STRING_TOO_LONG | 422 | A length rule is broken (NI number, rti_id, external_ref, names) |
FIELD_STRING_PATTERN_MISMATCH | 422 | A name contains characters HMRC does not accept |
FIELD_VALIDATION_ERROR | 422 | Other value errors, for example an invalid tax code, email or phone number, or director_since missing |
VALUE_OUT_OF_RANGE | 422 | valid_from or valid_at outside the dates the satellite covers |
RANGE_CROSSES_EDITION | 422 | The valid_from–valid_to range of a PUT crosses an edition boundary |
PRECONDITION_MALFORMED | 422 | If-Match is not one quoted edition |
EDITION_MISMATCH | 412 | If-Match names an edition other than the one the range lies in |
SATELLITE_EXISTS | 412 | A PUT with If-None-Match: * for a satellite that already exists |
PRECONDITION_REQUIRED | 428 | A PUT without If-Match |
HUB_DUPLICATE_EXTERNAL_REF | 409 | The external_ref is already used in the organization |
HUB_CLOSED | 409 | A change to a closed employee |
GB_RTI_ID_DUPLICATE | 409 | The payroll ID is already used in the organization |
GB_RTI_ID_REUSED_IN_TAX_YEAR | 422 | The employee used this payroll ID earlier in the tax year |
HUB_NOT_FOUND | 404 | Unknown employee_id |
SATELLITE_NOT_FOUND | 404 | A satellite that was never written |
WAGE_TYPE_NOT_FOUND | 404 | Unknown wage_type_code in compensation |
ONE_OR_MORE_PAY_GROUP_NOT_FOUND | 400 | Unknown pay_group_id |
COMPENSATION_EFFECTIVE_DATE_TOO_OLD | 400 | A compensation change more than one tax year back |