Errors

Prev Next

Sometimes your API request will generate an error 🤬 . Errors are no fun, especially when the error message isn't helpful. We wrote clear and helpful error messages for you but wanted to provide a bit more information to help you understand what went wrong and how you can fix it.

Status codeDescription
302 - RedirectThe bearer token expired. You need to generate a new bearer token.
401 - UnauthorizedThe request couldn't be authenticated because the provided bearer token was not valid.

If you receive this error more than once, we suggest you create a new API key and generate a new bearer token.
403 - ForbiddenThe role of the user that created the API key doesn't have permission to perform the action on the resource. the API key inherits the permissions of the role of the user that create the key.
404 - Not foundThe resource does not exist. It was either deleted or never existed.
409 - ConflictReturned when you make a Create a secret request and a secret with that name already exists.
502 - Bad gatewaySomething went wrong on Torq's side.