Page MenuHomePhabricator

D6061.id20265.diff
No OneTemporary

D6061.id20265.diff

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

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)

Event Timeline