Skip to content

Commit 51670b4

Browse files
committed
add 500 error to api-data
1 parent bd37bdf commit 51670b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default function createRoute<M extends HttpMethod, PP, QP, RB>(input: Rou
6464
if (response400) {
6565
responses["400"] = response400;
6666
}
67+
responses["500"] = { description: "Internal Server Error" };
6768

6869
handler.apiData = {
6970
operationId: input.operationId,

0 commit comments

Comments
 (0)