mirror of
https://github.com/tale/headplane.git
synced 2026-08-18 09:03:14 +00:00
feat: improve error returning and parsing logic
This commit is contained in:
+7
-4
@@ -19,10 +19,13 @@ export function data400(message: string) {
|
||||
}
|
||||
|
||||
export function data403(message: string) {
|
||||
return data({
|
||||
success: false,
|
||||
message,
|
||||
});
|
||||
return data(
|
||||
{
|
||||
success: false,
|
||||
message,
|
||||
},
|
||||
{ status: 403 },
|
||||
);
|
||||
}
|
||||
|
||||
export function data404(message: string) {
|
||||
|
||||
Reference in New Issue
Block a user