🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

error-status-helper

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

error-status-helper - npm Package Compare versions

Package was removed
Sorry, it seems this package was removed from the registry
Comparing version
1.0.4
to
1.0.5
+21
test/usage_sample.js
var express = require('express');
var _statusCodes = require('../statusCodes.js');
//var errorStatus = require('error-status-helper').use(_statusCodes);
var errorStatus = require('../index.js').use(_statusCodes);
var app = express();
app.use(errorStatus);
app.use("/badRequest", function (req, res, next) {
res.Bad_Request();
})
app.use("/forbidden", function (req, res, next) {
var errMsg = {statusCode: -1, message: 'you can not use this interface'};
res.Forbidden(errMsg);
})
app.listen(3001);
+116
-29

@@ -28,4 +28,6 @@ <?xml version="1.0" encoding="UTF-8"?>

<state vertical-scroll-proportion="0.0">
<caret line="9" column="32" selection-start-line="9" selection-start-column="32" selection-end-line="9" selection-end-column="32" />
<folding />
<caret line="14" column="32" selection-start-line="14" selection-start-column="32" selection-end-line="14" selection-end-column="32" />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>

@@ -39,3 +41,3 @@ </provider>

<state vertical-scroll-proportion="0.0">
<caret line="186" column="18" selection-start-line="186" selection-start-column="18" selection-end-line="186" selection-end-column="18" />
<caret line="210" column="18" selection-start-line="210" selection-start-column="18" selection-end-line="210" selection-end-column="18" />
<folding />

@@ -49,3 +51,3 @@ </state>

<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.35403726">
<state vertical-scroll-proportion="0.5449331">
<caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" />

@@ -60,4 +62,4 @@ <folding />

<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-18.88889">
<caret line="34" column="0" selection-start-line="34" selection-start-column="0" selection-end-line="34" selection-end-column="0" />
<state vertical-scroll-proportion="0.0">
<caret line="54" column="0" selection-start-line="54" selection-start-column="0" selection-end-line="54" selection-end-column="0" />
<folding />

@@ -93,6 +95,5 @@ </state>

<component name="ProjectFrameBounds">
<option name="x" value="-2" />
<option name="y" value="25" />
<option name="width" value="1684" />
<option name="height" value="1004" />
<option name="width" value="1680" />
<option name="height" value="1000" />
</component>

@@ -125,3 +126,2 @@ <component name="ProjectLevelVcsManager" settingsEditedManually="false">

<pane id="Scratches" />
<pane id="Scope" />
<pane id="ProjectPane">

@@ -147,2 +147,3 @@ <subPane>

</pane>
<pane id="Scope" />
</panes>

@@ -286,16 +287,13 @@ </component>

<component name="ToolWindowManager">
<frame x="-2" y="25" width="1684" height="1004" extended-state="6" />
<frame x="0" y="25" width="1680" height="1000" extended-state="7" />
<editor active="false" />
<layout>
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3270809" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24954791" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15310428" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15310428" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32942554" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32905483" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />

@@ -305,5 +303,8 @@ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />

<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
</layout>

@@ -354,2 +355,20 @@ <layout-to-restore>

<state vertical-scroll-proportion="0.0">
<caret line="9" column="32" selection-start-line="9" selection-start-column="32" selection-end-line="9" selection-end-column="32" />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/statusCodes.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="186" column="18" selection-start-line="186" selection-start-column="18" selection-end-line="186" selection-end-column="18" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/package.json">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />

@@ -360,5 +379,57 @@ <folding />

</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="34" column="0" selection-start-line="34" selection-start-column="0" selection-end-line="34" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/index.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="9" column="32" selection-start-line="9" selection-start-column="32" selection-end-line="9" selection-end-column="32" />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/statusCodes.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="186" column="18" selection-start-line="186" selection-start-column="18" selection-end-line="186" selection-end-column="18" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/package.json">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="34" column="0" selection-start-line="34" selection-start-column="0" selection-end-line="34" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/index.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/statusCodes.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="460" column="19" selection-start-line="460" selection-start-column="19" selection-end-line="460" selection-end-column="19" />

@@ -373,3 +444,5 @@ <folding />

<caret line="17" column="19" selection-start-line="17" selection-start-column="19" selection-end-line="17" selection-end-column="19" />
<folding />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>

@@ -390,3 +463,5 @@ </provider>

<caret line="17" column="19" selection-start-line="17" selection-start-column="19" selection-end-line="17" selection-end-column="19" />
<folding />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>

@@ -407,3 +482,5 @@ </provider>

<caret line="17" column="19" selection-start-line="17" selection-start-column="19" selection-end-line="17" selection-end-column="19" />
<folding />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>

@@ -424,3 +501,5 @@ </provider>

<caret line="17" column="19" selection-start-line="17" selection-start-column="19" selection-end-line="17" selection-end-column="19" />
<folding />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>

@@ -455,3 +534,5 @@ </provider>

<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>

@@ -464,3 +545,5 @@ </provider>

<caret line="21" column="0" selection-start-line="21" selection-start-column="0" selection-end-line="21" selection-end-column="0" />
<folding />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>

@@ -480,3 +563,5 @@ </provider>

<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>

@@ -495,4 +580,6 @@ </provider>

<state vertical-scroll-proportion="0.0">
<caret line="9" column="32" selection-start-line="9" selection-start-column="32" selection-end-line="9" selection-end-column="32" />
<folding />
<caret line="14" column="32" selection-start-line="14" selection-start-column="32" selection-end-line="14" selection-end-column="32" />
<folding>
<marker date="1469589894151" expanded="true" signature="567:581" placeholder="{...}" />
</folding>
</state>

@@ -503,4 +590,4 @@ </provider>

<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-18.88889">
<caret line="34" column="0" selection-start-line="34" selection-start-column="0" selection-end-line="34" selection-end-column="0" />
<state vertical-scroll-proportion="0.0">
<caret line="54" column="0" selection-start-line="54" selection-start-column="0" selection-end-line="54" selection-end-column="0" />
<folding />

@@ -513,3 +600,3 @@ </state>

<state vertical-scroll-proportion="0.0">
<caret line="186" column="18" selection-start-line="186" selection-start-column="18" selection-end-line="186" selection-end-column="18" />
<caret line="210" column="18" selection-start-line="210" selection-start-column="18" selection-end-line="210" selection-end-column="18" />
<folding />

@@ -521,3 +608,3 @@ </state>

<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.35403726">
<state vertical-scroll-proportion="0.5449331">
<caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" />

@@ -524,0 +611,0 @@ <folding />

+7
-2

@@ -13,4 +13,9 @@ /**

Object.keys(_statusCodes).forEach(function (status) {
res.__proto__[status] = function () {
return this.status(_statusCodes[status].code).json(_statusCodes[status].message);
res.__proto__[status] = function (msg) {
if (msg) {
return this.status(_statusCodes[status].code).json(msg);
}
else {
return this.status(_statusCodes[status].code).json(_statusCodes[status].message);
}
};

@@ -17,0 +22,0 @@ });

{
"name": "error-status-helper",
"version": "1.0.4",
"version": "1.0.5",
"description": "Extends node.js response middleware with status codes helper methods.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,6 +15,7 @@ # error-status-helper

``` javascript
javascript
simple example
* simple example
```
var express = require('express');

@@ -26,5 +27,7 @@ var errorStatus = require('error-status-helper');

```
custom example
* custom example
```
var express = require('express');

@@ -36,8 +39,13 @@ var _statusCodes = require('./statusCodes.js');

app.use(errorStatus);
```
statusCode.js format
statusCode.js format
the default code is using the http code, you can define you own business code in statusCode property.
```
module.exports = {
Bad_Request: {
code: 400,
statusCode:401001,
message: {

@@ -48,3 +56,14 @@ en: "Bad Request"

}
```
You using in you code only available in express
```
app.use("/badRequest", function (req, res, next) {
res.Bad_Request();
})
app.use("/forbidden", function (req, res, next) {
var errMsg = {statusCode: -1, message: 'you can not use this interface'};
res.Forbidden(errMsg);
})
```

@@ -12,4 +12,5 @@ /**

message: {
statusCode:100001,
en: "Continue",
chs: "继续请求"
zh: "继续请求"
}

@@ -21,4 +22,5 @@ },

message: {
statusCode:101001,
en: "Switching Protocols",
chs: "切换协议"
zh: "切换协议"
}

@@ -30,4 +32,5 @@ },

message: {
statusCode:102001,
en: "Processing",
chs: "继续执行"
zh: "继续执行"
}

@@ -39,4 +42,5 @@ },

message: {
statusCode:200001,
en: "OK",
chs: "请求成功"
zh: "请求成功"
}

@@ -48,4 +52,5 @@ },

message: {
statusCode:201001,
en: "Created",
chs: "已创建"
zh: "已创建"
}

@@ -57,4 +62,5 @@ },

message: {
statusCode:202001,
en: "Accepted",
chs: '已接受'
zh: '已接受'
}

@@ -66,4 +72,5 @@ },

message: {
statusCode:203001,
en: "Non-authoritative Information",
chs: '非授权信息'
zh: '非授权信息'
}

@@ -75,4 +82,5 @@ },

message: {
statusCode:204001,
en: "No Content",
chs: "无内容"
zh: "无内容"
}

@@ -84,4 +92,5 @@ },

message: {
statusCode:205001,
en: "Reset Content",
chs: "重置内容"
zh: "重置内容"
}

@@ -93,4 +102,5 @@ },

message: {
statusCode:206001,
en: "Partial Content",
chs: "部分内容"
zh: "部分内容"
}

@@ -102,4 +112,5 @@ },

message: {
statusCode:207001,
en: "Multi-Status",
chs: "多状态"
zh: "多状态"
}

@@ -111,4 +122,5 @@ },

message: {
statusCode:208001,
en: "Already Reported",
chs: "已应答"
zh: "已应答"
}

@@ -120,4 +132,5 @@ },

message: {
statusCode:266001,
en: "IM Used",
chs: "使用实例"
zh: "使用实例"
}

@@ -129,4 +142,5 @@ },

message: {
statusCode:300001,
en: "Multiple Choices",
chs: "多种选择"
zh: "多种选择"
}

@@ -138,4 +152,5 @@ },

message: {
statusCode:301001,
en: "Moved Permanently",
chs: "永久移动"
zh: "永久移动"
}

@@ -147,4 +162,5 @@ },

message: {
statusCode:302001,
en: "Move temporarily",
chs: "临时移动"
zh: "临时移动"
}

@@ -156,4 +172,5 @@ },

message: {
statusCode:303001,
en: "See Other",
chs: "查看其他位置"
zh: "查看其他位置"
}

@@ -165,4 +182,5 @@ },

message: {
statusCode:304001,
en: "Not Modified",
chs: "未修改"
zh: "未修改"
}

@@ -174,4 +192,5 @@ },

message: {
statusCode:305001,
en: "Use Proxy",
chs: "使用代理"
zh: "使用代理"
}

@@ -183,4 +202,5 @@ },

message: {
statusCode:307001,
en: "Temporary Redirect",
chs: "临时重定向"
zh: "临时重定向"
}

@@ -192,4 +212,5 @@ },

message: {
statusCode:308001,
en: "Permanent Redirect",
chs: "永久重定向"
zh: "永久重定向"
}

@@ -201,4 +222,5 @@ },

message: {
statusCode:400001,
en: "Bad Request",
chs: "错误请求"
zh: "错误请求"
}

@@ -210,4 +232,5 @@ },

message: {
statusCode:401001,
en: "Unauthorized",
chs: "未授权"
zh: "未授权"
}

@@ -219,4 +242,5 @@ },

message: {
statusCode:402001,
en: "Payment Required",
chs: "支付请求"
zh: "支付请求"
}

@@ -228,4 +252,5 @@ },

message: {
statusCode:403001,
en: "Forbidden",
chs: "禁止"
zh: "禁止"
}

@@ -237,4 +262,5 @@ },

message: {
statusCode:404001,
en: "Not Found",
chs: "未找到"
zh: "未找到"
}

@@ -246,4 +272,5 @@ },

message: {
statusCode:405001,
en: "Method Not Allowed",
chs: "方法禁用"
zh: "方法禁用"
}

@@ -255,4 +282,5 @@ },

message: {
statusCode:406001,
en: "Not Acceptable",
chs: "不接受"
zh: "不接受"
}

@@ -264,4 +292,5 @@ },

message: {
statusCode:407001,
en: "Proxy Authentication Required",
chs: "需要代理授权"
zh: "需要代理授权"
}

@@ -273,4 +302,5 @@ },

message: {
statusCode:408001,
en: "Request Timeout",
chs: "请求超时"
zh: "请求超时"
}

@@ -282,4 +312,5 @@ },

message: {
statusCode:409001,
en: "Conflict",
chs: "冲突"
zh: "冲突"
}

@@ -291,4 +322,5 @@ },

message: {
statusCode:410001,
en: "Gone",
chs: "已删除"
zh: "已删除"
}

@@ -300,4 +332,5 @@ },

message: {
statusCode:411001,
en: "Length Required",
chs: "需要有效长度"
zh: "需要有效长度"
}

@@ -309,4 +342,5 @@ },

message: {
statusCode:412001,
en: "Precondition Failed",
chs: "未满足前提条件"
zh: "未满足前提条件"
}

@@ -318,4 +352,5 @@ },

message: {
statusCode:413001,
en: "Payload Too Large",
chs: "请求实体过大"
zh: "请求实体过大"
}

@@ -327,4 +362,5 @@ },

message: {
statusCode:414001,
en: "Request-URI Too Long",
chs: "请求的 URI 过长"
zh: "请求的 URI 过长"
}

@@ -336,4 +372,5 @@ },

message: {
statusCode:415001,
en: "Unsupported Media Type",
chs: "不支持的媒体类型"
zh: "不支持的媒体类型"
}

@@ -345,4 +382,5 @@ },

message: {
statusCode:416001,
en: "Requested Range Not Satisfiable",
chs: "请求范围不符合要求"
zh: "请求范围不符合要求"
}

@@ -354,4 +392,5 @@ },

message: {
statusCode:417001,
en: "Expectation Failed",
chs: "未满足期望值"
zh: "未满足期望值"
}

@@ -363,4 +402,5 @@ },

message: {
statusCode:418001,
en: "I'm a teapot",
chs: "我是一个茶罐"
zh: "我是一个茶罐"
}

@@ -372,4 +412,5 @@ },

message: {
statusCode:421001,
en: "Misdirected Request",
chs: "错误的请求"
zh: "错误的请求"
}

@@ -381,4 +422,5 @@ },

message: {
statusCode:422001,
en: "Unprocessable Entity",
chs: "无法处理的实体"
zh: "无法处理的实体"
}

@@ -390,4 +432,5 @@ },

message: {
statusCode:423001,
en: "Locked",
chs: "当前资源被锁定"
zh: "当前资源被锁定"
}

@@ -399,4 +442,5 @@ },

message: {
statusCode:424001,
en: "Failed Dependency",
chs: "依赖失败"
zh: "依赖失败"
}

@@ -408,4 +452,5 @@ },

message: {
statusCode:426001,
en: "Upgrade Required",
chs: "请求升级"
zh: "请求升级"
}

@@ -417,4 +462,5 @@ },

message: {
statusCode:428001,
en: "Precondition Required",
chs: "要求先决条件"
zh: "要求先决条件"
}

@@ -426,4 +472,5 @@ },

message: {
statusCode:429001,
en: "Too Many Requests",
chs: "太多请求"
zh: "太多请求"
}

@@ -435,4 +482,5 @@ },

message: {
statusCode:431001,
en: "Request Header Fields Too Large",
chs: "请求头字段太大"
zh: "请求头字段太大"
}

@@ -444,4 +492,5 @@ },

message: {
statusCode:444001,
en: "Connection Closed Without Response",
chs: "无响应连接关闭"
zh: "无响应连接关闭"
}

@@ -453,4 +502,5 @@ },

message: {
statusCode:451001,
en: "Unavailable For Legal Reasons",
chs: "由于法律原因而无效"
zh: "由于法律原因而无效"
}

@@ -462,4 +512,5 @@ },

message: {
statusCode:449001,
en: "Client Closed Request",
chs: "客户端关闭请求"
zh: "客户端关闭请求"
}

@@ -471,4 +522,5 @@ },

message: {
statusCode:500001,
en: "Internal Server Error",
chs: "服务器内部错误"
zh: "服务器内部错误"
}

@@ -480,4 +532,5 @@ },

message: {
statusCode:501001,
en: "Not Implemented",
chs: "尚未实施"
zh: "尚未实施"
}

@@ -489,4 +542,5 @@ },

message: {
statusCode:502001,
en: "Bad Gateway",
chs: "错误网关"
zh: "错误网关"
}

@@ -498,4 +552,5 @@ },

message: {
statusCode:503001,
en: "Service Unavailable",
chs: "服务不可用"
zh: "服务不可用"
}

@@ -507,4 +562,5 @@ },

message: {
statusCode:504001,
en: "Gateway Timeout",
chs: "网关超时"
zh: "网关超时"
}

@@ -516,4 +572,5 @@ },

message: {
statusCode:505001,
en: "HTTP Version Not Supported",
chs: "HTTP 版本不受支持"
zh: "HTTP 版本不受支持"
}

@@ -524,5 +581,6 @@ },

code: 506,
statusCode:506001,
message: {
en: "Variant Also Negotiates",
chs: "透明内容协商协议"
zh: "透明内容协商协议"
}

@@ -534,4 +592,5 @@ },

message: {
statusCode:507001,
en: "Insufficient Storage",
chs: "存储空间不足"
zh: "存储空间不足"
}

@@ -543,4 +602,5 @@ },

message: {
statusCode:508001,
en: "Loop Detected",
chs: "环路检查"
zh: "环路检查"
}

@@ -552,4 +612,5 @@ },

message: {
statusCode:510001,
en: "Not Extended",
chs: "没有扩展"
zh: "没有扩展"
}

@@ -561,4 +622,5 @@ },

message: {
statusCode:511001,
en: "Network Authentication Required",
chs: "要求网络认证"
zh: "要求网络认证"
}

@@ -570,4 +632,5 @@ },

message: {
statusCode:599001,
en: "Network Connect Timeout Error",
chs: "网络连接超时错误"
zh: "网络连接超时错误"
}

@@ -574,0 +637,0 @@ }

Sorry, the diff of this file is not supported yet