# Errors and Troubleshooting

## Status codes

| Code | Meaning | What to do |
| --- | --- | --- |
| `200` | OK | Nothing. |
| `201` | Draft created | The body has the draft with its `id`. The `Location` header has the same draft URL. |
| `202` | Postings accepted and queued | Track delivery with `GET /jobs/{job_id}/postings`. |
| `400` | Validation failed | Check the `errors` list in the response for the field and the problem. |
| `401` | Credentials missing or wrong | For Basic auth, check your username and password. For OAuth, check that the access token hasn't expired. Also check you're using the right environment. See [Authentication](https://connect.equest.com/joblauncher-api/docs/authentication). |
| `403` | Not enough inventory | One or more boards are out of postings. Check `GET /boards`. Inventory comes from the customer's own board contracts, so let the customer know. |
| `404` | Not found | The ID doesn't exist or isn't on your account. |
| `500` | Server error | Try again. If it keeps happening, email [api-support@equest.com](mailto:api-support@equest.com). |
| `501` | Not implemented | Currently returned only when the request includes a paid one-off board. |

## Error response

```text
{
  "code": 400,
  "message": "Validation failed",
  "errors": [
    {
      "property_path": "jobCity",
      "message": "Invalid Job City"
    }
  ],
  "_links": {
    "draft:edit-form": {
      "href": "https://joblauncher.equest.com/en/job/81732500?uid=abc123#important"
    }
  }
}
```

`errors` is a list, with one entry per problem. `property_path` is eQuest's internal name for the field, which doesn't always match the name you sent. For example, `jobCity` means `position.location.city`. The `draft:edit-form` link opens the draft in eQuest's job editor, where a user can fix the problem by hand.

## Common problems

**My location is rejected.**  
`state` needs the full code with the country prefix: `US-CA`, not `CA`. Find the right code in the [Location Code Lookup](https://tools.equest.com/).

**I get a 400 on function or industry.**  
`function` is an 8-digit eQuest code as text, like `"15103100"`. `industry` is a number from 1 to 56. Search for a function code in the [Job Function Lookup](https://tools.equest.com/job-functions/). See [Job Functions](https://connect.equest.com/joblauncher-api/docs/job-functions) and [Job Industries](https://connect.equest.com/joblauncher-api/docs/job-industries).

**My posting says** `**deferred**`**.**  
The board didn't accept it. The reason is in `board_status.deferred_reason`. Fix the job data, create a new draft, and post it again.

**I was charged more than I expected.**  
Each call to `POST /drafts/{draft_id}/postings` is one transaction. Send every board in a single call.

**My changes didn't show up on the board.**  
Drafts are single use. Create a new draft with the same `requisition_number` and the changes, then post it to the same boards. eQuest matches on the requisition number.

**Some locations are missing on a board.**  
The board has a location limit. See [Multiple Locations](https://connect.equest.com/joblauncher-api/docs/multiple-locations) for how eQuest picks which ones to send.

**Fields are missing or the response looks different than the docs.**  
Make sure every request sends `X-Accept-Version`. If it's missing, eQuest uses version 1.0 of the API, which is missing many of the fields documented here.

**My test postings used up real inventory.**  
Anything sent to the production base URL is real, and counts against your eQuest and job board inventory. Do all testing on `joblauncher.testing.equest.com`.

## Getting help

Email [api-support@equest.com](mailto:api-support@equest.com). Include:

-   Your company name
-   The environment (testing or production)
-   The `X-Accept-Version` you sent
-   The request URL and method
-   The draft, job, or posting ID
-   The full response, including the status code
-   The time of the request, with time zone
