fix(server): match Hono wire format for authorize undefined and share errors (#26474)

This commit is contained in:
Kit Langton
2026-05-09 00:30:00 -04:00
committed by GitHub
parent e7cc8259b5
commit dbd48d423d
3 changed files with 13 additions and 6 deletions

View File

@@ -261,7 +261,7 @@ export const SessionApi = HttpApi.make("session")
HttpApiEndpoint.post("share", SessionPaths.share, {
params: { sessionID: SessionID },
success: described(Session.Info, "Successfully shared session"),
error: [HttpApiError.BadRequest, ApiNotFoundError],
error: [HttpApiError.InternalServerError, ApiNotFoundError],
}).annotateMerge(
OpenApi.annotations({
identifier: "session.share",
@@ -272,7 +272,7 @@ export const SessionApi = HttpApi.make("session")
HttpApiEndpoint.delete("unshare", SessionPaths.share, {
params: { sessionID: SessionID },
success: described(Session.Info, "Successfully unshared session"),
error: [HttpApiError.BadRequest, ApiNotFoundError],
error: [HttpApiError.InternalServerError, ApiNotFoundError],
}).annotateMerge(
OpenApi.annotations({
identifier: "session.unshare",