Skip to content

Commit

Permalink
Update Server.ts
Browse files Browse the repository at this point in the history
better default status code for unhandled exceptions

Signed-off-by: tnfAngel <[email protected]>
  • Loading branch information
tnfAngel authored Mar 3, 2024
1 parent 88d86dd commit 0eadbd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class Server {

default:
console.error(error);
return JSPError.send(set, 400, JSPError.message[ErrorCode.unknown]);
return JSPError.send(set, 500, JSPError.message[ErrorCode.unknown]);
}
});
}
Expand Down

0 comments on commit 0eadbd3

Please sign in to comment.