API Error 404: Not Found

An HTTP 404: Not Found error is returned by the API when a requested resource can not be found. This can happen for one of several reasons:

  • You are attempting to hit an endpoint that does not exist (like https://api.bonsai.io/covfefe).
  • You are attempting to access some information that is not available to your account.

Example

An HTTP 404: Not Found error may look something like this:

{
  "errors": [
    "Cluster doesnotexist-1234 not found.",
    "Please review the documentation available at https://docs.bonsai.io",
    "Undefined request."
  ],
  "status": 404
}

The "status": 404 key confirms the error is an HTTP 404: Not Found error.

Troubleshooting

The first thing to look at when troubleshooting an HTTP 404: Not Found error is the error message array which is returned from the API. Also make sure to check for any typos that may have ended up in the request.

If you're still unsure why you are receiving the error, then please shoot us an email.