code field in the response body. Branch on code for programmatic
handling — the message text is for humans and may change.
Status codes
Common codes
Non-distinguishability
So the API cannot be used as an oracle, “does not exist,” “no access,” and “draft/deleted” all return the same404 EMPLOYEE_NOT_FOUND for single resources.
The response code cannot tell you whether an employee hidden from you exists.
The API is in preview. Some transcoder errors (for example a typo in a query
parameter name) may currently come back as
500; folding every error into a single
JSON envelope with the correct status is in progress.