Skip to content

Commit 3621325

Browse files
authored
Merge branch 'main' into improve-response-headers
2 parents 504156c + d47b291 commit 3621325

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ServerErrorRegistry.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class ServerErrorRegistry<A> {
1414
public constructor() {
1515
this.responses = {
1616
[ServerErrorRegistry.ErrorCodes.BAD_URL]:
17-
new TextResponse("Bad request URL.", 400),
17+
new TextResponse("Invalid request URL.", 400),
1818

1919
[ServerErrorRegistry.ErrorCodes.NO_ROUTE]:
20-
new TextResponse("No route in this registry matches the request.", 404),
20+
new TextResponse("No route matched the request.", 404),
2121

2222
[ServerErrorRegistry.ErrorCodes.INTERNAL]:
23-
new TextResponse("An internal error occurred.", 500),
23+
new TextResponse("An unexpected internal server error occurred.", 500),
2424

2525
[ServerErrorRegistry.ErrorCodes.PRECONDITION_FAILED]:
26-
new TextResponse("Precondition failed.", 412),
26+
new TextResponse("One or more preconditions were not met.", 412),
2727

2828
[ServerErrorRegistry.ErrorCodes.NO_PERMISSION]:
29-
new TextResponse("You do not have permission to perform this action.", 403),
29+
new TextResponse("You do not have the necessary permissions to perform this action.", 403),
3030

3131
[ServerErrorRegistry.ErrorCodes.UNAUTHORISED]:
3232
new TextResponse("Authentication information was either absent or invalid.", 401),

0 commit comments

Comments
 (0)