Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3558786
D6061.id20265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6061.id20265.diff
View Options
diff --git a/keyserver/src/responders/user-responders.js b/keyserver/src/responders/user-responders.js
--- a/keyserver/src/responders/user-responders.js
+++ b/keyserver/src/responders/user-responders.js
@@ -347,15 +347,15 @@
} catch (error) {
if (error === ErrorTypes.EXPIRED_MESSAGE) {
// Thrown when the `expirationTime` is present and in the past.
- throw new ServerError('expired_message', { status: 400 });
+ throw new ServerError('expired_message');
} else if (error === ErrorTypes.INVALID_SIGNATURE) {
// Thrown when the `validate()` function can't verify the message.
- throw new ServerError('invalid_signature', { status: 400 });
+ throw new ServerError('invalid_signature');
} else if (error === ErrorTypes.MALFORMED_SESSION) {
// Thrown when some required field is missing.
- throw new ServerError('malformed_session', { status: 400 });
+ throw new ServerError('malformed_session');
} else {
- throw new ServerError('unknown_error', { status: 500 });
+ throw new ServerError('unknown_error');
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 28, 5:07 AM (6 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2713406
Default Alt Text
D6061.id20265.diff (1 KB)
Attached To
Mode
D6061: [keyserver] Remove payloads from `siweAuthResponder` `ServerError`s
Attached
Detach File
Event Timeline
Log In to Comment