feat: add more dev message

This commit is contained in:
Methapon2001 2024-04-03 16:13:29 +07:00
parent 89e7767fae
commit 3ed9d56f00

View file

@ -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 {
/**