import { TpyErr } from "https://deno.land/x/tpy@v1.0.0-pre-release-2/mod.ts";
A library specific enum for describing errors.
Members
The deployment specified was not found. The API specifies this exactly like this:
could not find deployment
Sometimes this happens when a request is made with the authorization header but it is invalid.
Input | Response |
---|---|
(No Input) | 403 |
Incorrect Credentials | 500 |
Correct Input | 200 |
The fetch contents sent were did not have the required JSON body. The API specifies this exactly like this:
{
"msg": "missing json body",
}
The URL resource returns a 404, this shouldn't happen on built in functions unless the API was updated. Make an issue on the Tpy repository so we can catch this error.
This happens on two occasions:
- A request is made without an authorization header. (403)
- A request is made with the authorization header but it is invalid. (500)
Input | Response |
---|---|
(No Input) | 403 |
Incorrect Credentials | 500 |
Correct Input | 200 |
The API specifies this exactly like this:
{
"msg": "missing json body",
}