You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/errors.ts
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,3 +4,23 @@ export enum ERRORS {
4
4
ERR_CONTEXT_MATCHER_INVALID_ARRAY='[HPM] Invalid pathFilter. Plain paths (e.g. "/api") can not be mixed with globs (e.g. "/api/**"). Expecting something like: ["/api", "/ajax"] or ["/api/**", "!**.html"].',
5
5
ERR_PATH_REWRITER_CONFIG='[HPM] Invalid pathRewrite config. Expecting object with pathRewrite config or a rewrite function',
6
6
}
7
+
8
+
exportclassHttpProxyMiddlewareErrorextendsError{
9
+
code: string;
10
+
11
+
constructor(message: string,code: string){
12
+
super(message);
13
+
14
+
// add custom `code` property
15
+
// so this can be used in src/plugins/default/error-response-plugin.ts to determine the status code to return
0 commit comments