feat: add more dev message
This commit is contained in:
parent
89e7767fae
commit
3ed9d56f00
1 changed files with 8 additions and 1 deletions
|
|
@ -1,6 +1,13 @@
|
|||
import HttpStatus from "./http-status";
|
||||
|
||||
type DevMessage = "missing_or_invalid_parameter" | "data_exists" | "unknown_url" | "data_not_found";
|
||||
type DevMessage =
|
||||
| "missing_or_invalid_parameter"
|
||||
| "data_exists"
|
||||
| "data_in_used"
|
||||
| "no_permission"
|
||||
| "unknown_url"
|
||||
| "data_not_found"
|
||||
| "unauthorized";
|
||||
|
||||
class HttpError extends Error {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue