Skip to content

Commit 9e2c7a7

Browse files
committed
Fix issue where HTTP error status codes are not read.
1 parent 65d7420 commit 9e2c7a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export enum HttpCode {
1313
* used in the HTTP response.
1414
*/
1515
export class HttpError extends Error {
16-
public constructor(message: string, public readonly status: HttpCode, public readonly details?: object) {
16+
public constructor(message: string, public readonly statusCode: HttpCode, public readonly details?: object) {
1717
super(message)
1818
this.name = this.constructor.name
1919
}

0 commit comments

Comments
 (0)