Skip to content

Commit 5cd3e5e

Browse files
author
Adam Kucera
committed
adds 500-511 status codes
1 parent b97311e commit 5cd3e5e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tough-oranges-judge.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"openapi-typescript-helpers": minor
3+
---
4+
5+
adds 500-511 error status codes

packages/openapi-typescript-helpers/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type HttpMethod = "get" | "put" | "post" | "delete" | "options" | "head"
77
export type OkStatus = 200 | 201 | 202 | 203 | 204 | 206 | 207 | "2XX";
88
// prettier-ignore
99
/** 4XX and 5XX statuses */
10-
export type ErrorStatus = 500 | '5XX' | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 429 | 431 | 444 | 450 | 451 | 497 | 498 | 499 | '4XX' | "default";
10+
export type ErrorStatus = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | '5XX' | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 429 | 431 | 444 | 450 | 451 | 497 | 498 | 499 | '4XX' | "default";
1111

1212
// OpenAPI type helpers
1313

0 commit comments

Comments
 (0)