error-status-helper
Advanced tools
+176
-29
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project version="4"> | ||
| <component name="ChangeListManager"> | ||
| <list default="true" id="7ada44b4-70c5-4764-bcc9-e525dc4e4986" name="Default" comment=""> | ||
| <change type="MODIFICATION" beforePath="$PROJECT_DIR$/package.json" afterPath="$PROJECT_DIR$/package.json" /> | ||
| </list> | ||
| <list default="true" id="7ada44b4-70c5-4764-bcc9-e525dc4e4986" name="Default" comment="" /> | ||
| <ignored path="error-status.iws" /> | ||
@@ -26,7 +24,7 @@ <ignored path=".idea/workspace.xml" /> | ||
| <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> | ||
| <file leaf-file-name="README.md" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/README.md"> | ||
| <file leaf-file-name="index.js" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-15.148149"> | ||
| <caret line="33" column="0" selection-start-line="33" selection-start-column="0" selection-end-line="33" selection-end-column="0" /> | ||
| <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 /> | ||
@@ -37,7 +35,17 @@ </state> | ||
| </file> | ||
| <file leaf-file-name="statusCodes.js" pinned="false" current-in-tab="false"> | ||
| <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> | ||
| </file> | ||
| <file leaf-file-name="package.json" pinned="false" current-in-tab="true"> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.028846154"> | ||
| <caret line="1" column="30" selection-start-line="1" selection-start-column="30" selection-end-line="1" selection-end-column="30" /> | ||
| <state vertical-scroll-proportion="0.35403726"> | ||
| <caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" /> | ||
| <folding /> | ||
@@ -48,2 +56,12 @@ </state> | ||
| </file> | ||
| <file leaf-file-name="README.md" pinned="false" current-in-tab="false"> | ||
| <entry file="file://$PROJECT_DIR$/README.md"> | ||
| <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" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </file> | ||
| </leaf> | ||
@@ -59,4 +77,4 @@ </component> | ||
| <option value="$PROJECT_DIR$/../error-status/README.md" /> | ||
| <option value="$PROJECT_DIR$/index.js" /> | ||
| <option value="$PROJECT_DIR$/statusCodes.js" /> | ||
| <option value="$PROJECT_DIR$/index.js" /> | ||
| <option value="$PROJECT_DIR$/README.md" /> | ||
@@ -75,5 +93,6 @@ <option value="$PROJECT_DIR$/package.json" /> | ||
| <component name="ProjectFrameBounds"> | ||
| <option name="x" value="-2" /> | ||
| <option name="y" value="25" /> | ||
| <option name="width" value="1680" /> | ||
| <option name="height" value="1000" /> | ||
| <option name="width" value="1684" /> | ||
| <option name="height" value="1004" /> | ||
| </component> | ||
@@ -105,4 +124,4 @@ <component name="ProjectLevelVcsManager" settingsEditedManually="false"> | ||
| <panes> | ||
| <pane id="Scratches" /> | ||
| <pane id="Scope" /> | ||
| <pane id="Scratches" /> | ||
| <pane id="ProjectPane"> | ||
@@ -256,8 +275,14 @@ <subPane> | ||
| </task> | ||
| <option name="localTasksCounter" value="11" /> | ||
| <task id="LOCAL-00011" summary="error-status"> | ||
| <created>1469514902333</created> | ||
| <option name="number" value="00011" /> | ||
| <option name="project" value="LOCAL" /> | ||
| <updated>1469514902333</updated> | ||
| </task> | ||
| <option name="localTasksCounter" value="12" /> | ||
| <servers /> | ||
| </component> | ||
| <component name="ToolWindowManager"> | ||
| <frame x="0" y="25" width="1680" height="1000" extended-state="0" /> | ||
| <editor active="true" /> | ||
| <frame x="-2" y="25" width="1684" height="1004" extended-state="6" /> | ||
| <editor active="false" /> | ||
| <layout> | ||
@@ -267,4 +292,4 @@ <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="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.25" sideWeight="0.5" order="1" 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.2489426" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | ||
| <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" /> | ||
@@ -275,12 +300,40 @@ <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="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="true" show_stripe_button="true" weight="0.32942554" sideWeight="0.5" order="7" side_tool="false" 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="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" /> | ||
| <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="Ant Build" 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="1" 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="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" /> | ||
| </layout> | ||
| <layout-to-restore> | ||
| <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" /> | ||
| <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="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="Ant Build" 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="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="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="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="3" 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="8" 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="9" 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="10" 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="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="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15342632" sideWeight="0.5" order="0" 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="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" /> | ||
| </layout> | ||
| <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-to-restore> | ||
| </component> | ||
| <component name="Vcs.Log.UiProperties"> | ||
| <option name="RECENTLY_FILTERED_USER_GROUPS"> | ||
| <collection /> | ||
| </option> | ||
| <option name="RECENTLY_FILTERED_BRANCH_GROUPS"> | ||
| <collection /> | ||
| </option> | ||
| </component> | ||
| <component name="VcsContentAnnotationSettings"> | ||
@@ -306,6 +359,14 @@ <option name="myLimit" value="2678400000" /> | ||
| </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" /> | ||
| <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="21" column="0" selection-start-line="21" selection-start-column="0" selection-end-line="21" selection-end-column="0" /> | ||
| <caret line="17" column="19" selection-start-line="17" selection-start-column="19" selection-end-line="17" selection-end-column="19" /> | ||
| <folding /> | ||
@@ -319,2 +380,3 @@ </state> | ||
| <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| <folding /> | ||
| </state> | ||
@@ -326,2 +388,10 @@ </provider> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="17" column="19" selection-start-line="17" selection-start-column="19" selection-end-line="17" selection-end-column="19" /> | ||
| <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="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
@@ -332,6 +402,6 @@ <folding /> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="8" column="17" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" /> | ||
| <caret line="17" column="19" selection-start-line="17" selection-start-column="19" selection-end-line="17" selection-end-column="19" /> | ||
| <folding /> | ||
@@ -343,4 +413,5 @@ </state> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.02757353"> | ||
| <caret line="30" column="17" selection-start-line="30" selection-start-column="8" selection-end-line="30" selection-end-column="19" /> | ||
| <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> | ||
@@ -352,3 +423,3 @@ </provider> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="16" column="5" selection-start-line="16" selection-start-column="5" selection-end-line="16" selection-end-column="5" /> | ||
| <caret line="17" column="19" selection-start-line="17" selection-start-column="19" selection-end-line="17" selection-end-column="19" /> | ||
| <folding /> | ||
@@ -358,6 +429,28 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/statusCodes.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 /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/README.md"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="-15.148149"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="33" column="0" selection-start-line="33" selection-start-column="0" selection-end-line="33" selection-end-column="0" /> | ||
| </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" /> | ||
| </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 /> | ||
@@ -367,6 +460,36 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/index.js"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="21" column="0" selection-start-line="21" selection-start-column="0" selection-end-line="21" selection-end-column="0" /> | ||
| <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="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
| </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 /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/package.json"> | ||
| <provider selected="true" editor-type-id="text-editor"> | ||
| <state vertical-scroll-proportion="0.028846154"> | ||
| <caret line="1" column="30" selection-start-line="1" selection-start-column="30" selection-end-line="1" selection-end-column="30" /> | ||
| <state vertical-scroll-proportion="0.0"> | ||
| <caret line="8" column="17" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" /> | ||
| </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 /> | ||
@@ -376,3 +499,27 @@ </state> | ||
| </entry> | ||
| <entry file="file://$PROJECT_DIR$/README.md"> | ||
| <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" /> | ||
| <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.35403726"> | ||
| <caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" /> | ||
| <folding /> | ||
| </state> | ||
| </provider> | ||
| </entry> | ||
| </component> | ||
| </project> |
+1
-1
| { | ||
| "name": "error-status-helper", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Extends node.js response middleware with status codes helper methods.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+3
-3
@@ -38,10 +38,10 @@ # error-status-helper | ||
| module.exports = { | ||
| BadRequest: { | ||
| Bad_Request: { | ||
| code: 400, | ||
| message: { | ||
| message: 'Bad Request' | ||
| en: "Bad Request" | ||
| } | ||
| } | ||
| }, | ||
| } | ||
| ``` |
+412
-143
@@ -7,239 +7,508 @@ /** | ||
| //1定义 | ||
| //2消息(1字头) | ||
| //▪ 100 Continue | ||
| //▪ 101 Switching Protocols | ||
| //▪ 102 Processing | ||
| //3成功(2字头) | ||
| //▪ 200 OK | ||
| //▪ 201 Created | ||
| //▪ 202 Accepted | ||
| //▪ 203 Non-Authoritative Information | ||
| //▪ 204 No Content | ||
| //▪ 205 Reset Content | ||
| //▪ 206 Partial Content | ||
| //▪ 207 Multi-Status | ||
| //4重定向(3字头) | ||
| //▪ 300 Multiple Choices | ||
| //▪ 301 Moved Permanently | ||
| //▪ 302 Move temporarily | ||
| //▪ 303 See Other | ||
| //▪ 304 Not Modified | ||
| //▪ 305 Use Proxy | ||
| //▪ 306 Switch Proxy | ||
| //▪ 307 Temporary Redirect | ||
| //5请求错误(4字头) | ||
| //▪ 400 Bad Request | ||
| //▪ 401 Unauthorized | ||
| //▪ 402 Payment Required | ||
| //▪ 403 Forbidden | ||
| //▪ 404 Not Found | ||
| //▪ 405 Method Not Allowed | ||
| //▪ 406 Not Acceptable | ||
| //▪ 407 Proxy Authentication Required | ||
| //▪ 408 Request Timeout | ||
| //▪ 409 Conflict | ||
| //▪ 410 Gone | ||
| //▪ 411 Length Required | ||
| //▪ 412 Precondition Failed | ||
| //▪ 413 Request Entity Too Large | ||
| //▪ 414 Request-URI Too Long | ||
| //▪ 415 Unsupported Media Type | ||
| //▪ 416 Requested Range Not Satisfiable | ||
| //▪ 417 Expectation Failed | ||
| //▪ 421 There are too many connections from your internet address | ||
| //▪ 422 Unprocessable Entity | ||
| //▪ 423 Locked | ||
| //▪ 424 Failed Dependency | ||
| //▪ 425 Unordered Collection | ||
| //▪ 426 Upgrade Required | ||
| //▪ 449 Retry With | ||
| //6服务器错误(5字头) | ||
| //▪ 500 Internal Server Error | ||
| //▪ 501 Not Implemented | ||
| //▪ 502 Bad Gateway | ||
| //▪ 503 Service Unavailable | ||
| //▪ 504 Gateway Timeout | ||
| //▪ 505 HTTP Version Not Supported | ||
| //▪ 506 Variant Also Negotiates | ||
| //▪ 507 Insufficient Storage | ||
| //▪ 509 Bandwidth Limit Exceeded | ||
| //▪ 510 Not Extended | ||
| //▪ 600 Unparseable Response Headers | ||
| module.exports = { | ||
| //请求失败,Request is invalid | ||
| BadRequest: { | ||
| Continue: { | ||
| code: 100, | ||
| message: { | ||
| en: "Continue", | ||
| chs: "继续请求" | ||
| } | ||
| }, | ||
| Switching_Protocols: { | ||
| code: 101, | ||
| message: { | ||
| en: "Switching Protocols", | ||
| chs: "切换协议" | ||
| } | ||
| }, | ||
| Processing: { | ||
| code: 102, | ||
| message: { | ||
| en: "Processing", | ||
| chs: "继续执行" | ||
| } | ||
| }, | ||
| OK: { | ||
| code: 200, | ||
| message: { | ||
| en: "OK", | ||
| chs: "请求成功" | ||
| } | ||
| }, | ||
| Created: { | ||
| code: 201, | ||
| message: { | ||
| en: "Created", | ||
| chs: "已创建" | ||
| } | ||
| }, | ||
| Accepted: { | ||
| code: 202, | ||
| message: { | ||
| en: "Accepted", | ||
| chs: '已接受' | ||
| } | ||
| }, | ||
| Non_authoritative_Information: { | ||
| code: 203, | ||
| message: { | ||
| en: "Non-authoritative Information", | ||
| chs: '非授权信息' | ||
| } | ||
| }, | ||
| No_Content: { | ||
| code: 204, | ||
| message: { | ||
| en: "No Content", | ||
| chs: "无内容" | ||
| } | ||
| }, | ||
| Reset_Content: { | ||
| code: 205, | ||
| message: { | ||
| en: "Reset Content", | ||
| chs: "重置内容" | ||
| } | ||
| }, | ||
| Partial_Content: { | ||
| code: 206, | ||
| message: { | ||
| en: "Partial Content", | ||
| chs: "部分内容" | ||
| } | ||
| }, | ||
| Multi_Status: { | ||
| code: 207, | ||
| message: { | ||
| en: "Multi-Status", | ||
| chs: "多状态" | ||
| } | ||
| }, | ||
| Already_Reported: { | ||
| code: 208, | ||
| message: { | ||
| en: "Already Reported", | ||
| chs: "已应答" | ||
| } | ||
| }, | ||
| IM_Used: { | ||
| code: 266, | ||
| message: { | ||
| en: "IM Used", | ||
| chs: "使用实例" | ||
| } | ||
| }, | ||
| Multiple_Choices: { | ||
| code: 300, | ||
| message: { | ||
| en: "Multiple Choices", | ||
| chs: "多种选择" | ||
| } | ||
| }, | ||
| Moved_Permanently: { | ||
| code: 301, | ||
| message: { | ||
| en: "Moved Permanently", | ||
| chs: "永久移动" | ||
| } | ||
| }, | ||
| Move_temporarily: { | ||
| code: 302, | ||
| message: { | ||
| en: "Move temporarily", | ||
| chs: "临时移动" | ||
| } | ||
| }, | ||
| See_Other: { | ||
| code: 303, | ||
| message: { | ||
| en: "See Other", | ||
| chs: "查看其他位置" | ||
| } | ||
| }, | ||
| Not_Modified: { | ||
| code: 304, | ||
| message: { | ||
| en: "Not Modified", | ||
| chs: "未修改" | ||
| } | ||
| }, | ||
| Use_Proxy: { | ||
| code: 305, | ||
| message: { | ||
| en: "Use Proxy", | ||
| chs: "使用代理" | ||
| } | ||
| }, | ||
| Temporary_Redirect: { | ||
| code: 307, | ||
| message: { | ||
| en: "Temporary Redirect", | ||
| chs: "临时重定向" | ||
| } | ||
| }, | ||
| Permanent_Redirect: { | ||
| code: 308, | ||
| message: { | ||
| en: "Permanent Redirect", | ||
| chs: "永久重定向" | ||
| } | ||
| }, | ||
| Bad_Request: { | ||
| code: 400, | ||
| message: { | ||
| statusCode: 400001, | ||
| message: '请求失败' | ||
| en: "Bad Request", | ||
| chs: "错误请求" | ||
| } | ||
| }, | ||
| //请求的token是无效的,Token is invalid | ||
| TokenInvalid: { | ||
| Unauthorized: { | ||
| code: 401, | ||
| message: { | ||
| statusCode: 401001, | ||
| message: '请求的token是无效的' | ||
| en: "Unauthorized", | ||
| chs: "未授权" | ||
| } | ||
| }, | ||
| //请求非法, Request is forbidden | ||
| Payment_Required: { | ||
| code: 402, | ||
| message: { | ||
| en: "Payment Required", | ||
| chs: "支付请求" | ||
| } | ||
| }, | ||
| Forbidden: { | ||
| code: 403, | ||
| message: { | ||
| statusCode: 403001, | ||
| message: '请求非法' | ||
| en: "Forbidden", | ||
| chs: "禁止" | ||
| } | ||
| }, | ||
| //用户已经存在,User Already Exist | ||
| UserAlreadyExist: { | ||
| code: 403, | ||
| Not_Found: { | ||
| code: 404, | ||
| message: { | ||
| statusCode: 403002, | ||
| message: '用户已经存在' | ||
| en: "Not Found", | ||
| chs: "未找到" | ||
| } | ||
| }, | ||
| //用户没有找到,Can not find the user | ||
| UserNotFound: { | ||
| code: 403, | ||
| Method_Not_Allowed: { | ||
| code: 405, | ||
| message: { | ||
| statusCode: 403003, | ||
| message: '用户没有找到' | ||
| en: "Method Not Allowed", | ||
| chs: "方法禁用" | ||
| } | ||
| }, | ||
| //密码不正确,The password is incorrect | ||
| PasswordIncorrect: { | ||
| code: 403, | ||
| Not_Acceptable: { | ||
| code: 406, | ||
| message: { | ||
| statusCode: 403004, | ||
| message: '密码不正确' | ||
| en: "Not Acceptable", | ||
| chs: "不接受" | ||
| } | ||
| }, | ||
| //达到最大重试次数,Reached the max attemps | ||
| MaxAttemps: { | ||
| code: 403, | ||
| Proxy_Authentication_Required: { | ||
| code: 407, | ||
| message: { | ||
| statusCode: 403005, | ||
| message: '达到最大重试次数' | ||
| en: "Proxy Authentication Required", | ||
| chs: "需要代理授权" | ||
| } | ||
| }, | ||
| //未找到对应api,Request not found' | ||
| NotFound: { | ||
| code: 404, | ||
| Request_Timeout: { | ||
| code: 408, | ||
| message: { | ||
| statusCode: 404001, | ||
| message: '未找到对应api' | ||
| en: "Request Timeout", | ||
| chs: "请求超时" | ||
| } | ||
| }, | ||
| //违反唯一约束,Unique constraint failed for this request | ||
| Conflict: { | ||
| code: 409, | ||
| message: { | ||
| statusCode: 409001, | ||
| message: '违反唯一约束' | ||
| en: "Conflict", | ||
| chs: "冲突" | ||
| } | ||
| }, | ||
| //不支持的请求,Unsupported protocol version | ||
| Unsupported: { | ||
| Gone: { | ||
| code: 410, | ||
| message: { | ||
| statusCode: 410001, | ||
| message: '不支持的请求' | ||
| en: "Gone", | ||
| chs: "已删除" | ||
| } | ||
| }, | ||
| //超出内容限制,Over capacity | ||
| OverCapacity: { | ||
| Length_Required: { | ||
| code: 411, | ||
| message: { | ||
| en: "Length Required", | ||
| chs: "需要有效长度" | ||
| } | ||
| }, | ||
| Precondition_Failed: { | ||
| code: 412, | ||
| message: { | ||
| statusCode: 412001, | ||
| message: '超出内容限制' | ||
| en: "Precondition Failed", | ||
| chs: "未满足前提条件" | ||
| } | ||
| }, | ||
| //请求体过长,Request entity is too large | ||
| TooLarge: { | ||
| Payload_Too_Large: { | ||
| code: 413, | ||
| message: { | ||
| statusCode: 413001, | ||
| message: '请求体过长' | ||
| en: "Payload Too Large", | ||
| chs: "请求实体过大" | ||
| } | ||
| }, | ||
| //验证码超过长度限制 | ||
| verifyCodeTooLarge: { | ||
| code: 413, | ||
| Request_URI_Too_Long: { | ||
| code: 414, | ||
| message: { | ||
| statusCode: 413002, | ||
| message: '验证码超过长度限制' | ||
| en: "Request-URI Too Long", | ||
| chs: "请求的 URI 过长" | ||
| } | ||
| }, | ||
| //账户已被封禁 | ||
| LOCKED: { | ||
| Unsupported_Media_Type: { | ||
| code: 415, | ||
| message: { | ||
| en: "Unsupported Media Type", | ||
| chs: "不支持的媒体类型" | ||
| } | ||
| }, | ||
| Requested_Range_Not_Satisfiable: { | ||
| code: 416, | ||
| message: { | ||
| en: "Requested Range Not Satisfiable", | ||
| chs: "请求范围不符合要求" | ||
| } | ||
| }, | ||
| Expectation_Failed: { | ||
| code: 417, | ||
| message: { | ||
| en: "Expectation Failed", | ||
| chs: "未满足期望值" | ||
| } | ||
| }, | ||
| I_am_a_teapot: { | ||
| code: 418, | ||
| message: { | ||
| en: "I'm a teapot", | ||
| chs: "我是一个茶罐" | ||
| } | ||
| }, | ||
| Misdirected_Request: { | ||
| code: 421, | ||
| message: { | ||
| en: "Misdirected Request", | ||
| chs: "错误的请求" | ||
| } | ||
| }, | ||
| Unprocessable_Entity: { | ||
| code: 422, | ||
| message: { | ||
| en: "Unprocessable Entity", | ||
| chs: "无法处理的实体" | ||
| } | ||
| }, | ||
| Locked: { | ||
| code: 423, | ||
| message: { | ||
| statusCode: 423001, | ||
| message: "账户已被封禁" | ||
| en: "Locked", | ||
| chs: "当前资源被锁定" | ||
| } | ||
| }, | ||
| //依赖检查失败,This request failed because its dependencies is missing or invalid | ||
| DependencyFailure: { | ||
| Failed_Dependency: { | ||
| code: 424, | ||
| message: { | ||
| statusCode: 424001, | ||
| message: '依赖检查失败' | ||
| en: "Failed Dependency", | ||
| chs: "依赖失败" | ||
| } | ||
| }, | ||
| //请使用https安全通道请求,This request require HTTPS to ensure security | ||
| Insecure: { | ||
| Upgrade_Required: { | ||
| code: 426, | ||
| message: { | ||
| statusCode: 426001, | ||
| message: '请使用https安全通道请求' | ||
| en: "Upgrade Required", | ||
| chs: "请求升级" | ||
| } | ||
| }, | ||
| //未知服务器内部错误,ServerInternalError | ||
| ServerInternalError: { | ||
| Precondition_Required: { | ||
| code: 428, | ||
| message: { | ||
| en: "Precondition Required", | ||
| chs: "要求先决条件" | ||
| } | ||
| }, | ||
| Too_Many_Requests: { | ||
| code: 429, | ||
| message: { | ||
| en: "Too Many Requests", | ||
| chs: "太多请求" | ||
| } | ||
| }, | ||
| Request_Header_Fields_Too_Large: { | ||
| code: 431, | ||
| message: { | ||
| en: "Request Header Fields Too Large", | ||
| chs: "请求头字段太大" | ||
| } | ||
| }, | ||
| Connection_Closed_Without_Response: { | ||
| code: 444, | ||
| message: { | ||
| en: "Connection Closed Without Response", | ||
| chs: "无响应连接关闭" | ||
| } | ||
| }, | ||
| Unavailable_For_Legal_Reasons: { | ||
| code: 451, | ||
| message: { | ||
| en: "Unavailable For Legal Reasons", | ||
| chs: "由于法律原因而无效" | ||
| } | ||
| }, | ||
| Client_Closed_Request: { | ||
| code: 499, | ||
| message: { | ||
| en: "Client Closed Request", | ||
| chs: "客户端关闭请求" | ||
| } | ||
| }, | ||
| Internal_Server_Error: { | ||
| code: 500, | ||
| message: { | ||
| statusCode: 500001, | ||
| message: '服务器开小差了' | ||
| en: "Internal Server Error", | ||
| chs: "服务器内部错误" | ||
| } | ||
| }, | ||
| //未知nginx内部错误,Upstream service error | ||
| UpstreamError: { | ||
| Not_Implemented: { | ||
| code: 501, | ||
| message: { | ||
| en: "Not Implemented", | ||
| chs: "尚未实施" | ||
| } | ||
| }, | ||
| Bad_Gateway: { | ||
| code: 502, | ||
| message: { | ||
| statusCode: 502001, | ||
| message: '未知nginx内部错误' | ||
| en: "Bad Gateway", | ||
| chs: "错误网关" | ||
| } | ||
| }, | ||
| //未知服务器内部错误,ServerInternalError | ||
| ServerMaintain: { | ||
| Service_Unavailable: { | ||
| code: 503, | ||
| message: { | ||
| statusCode: 503001, | ||
| message: '服务器正在维护' | ||
| en: "Service Unavailable", | ||
| chs: "服务不可用" | ||
| } | ||
| }, | ||
| Gateway_Timeout: { | ||
| code: 504, | ||
| message: { | ||
| en: "Gateway Timeout", | ||
| chs: "网关超时" | ||
| } | ||
| }, | ||
| HTTP_Version_Not_Supported: { | ||
| code: 505, | ||
| message: { | ||
| en: "HTTP Version Not Supported", | ||
| chs: "HTTP 版本不受支持" | ||
| } | ||
| }, | ||
| Variant_Also_Negotiates: { | ||
| code: 506, | ||
| message: { | ||
| en: "Variant Also Negotiates", | ||
| chs: "透明内容协商协议" | ||
| } | ||
| }, | ||
| Insufficient_Storage: { | ||
| code: 507, | ||
| message: { | ||
| en: "Insufficient Storage", | ||
| chs: "存储空间不足" | ||
| } | ||
| }, | ||
| Loop_Detected: { | ||
| code: 508, | ||
| message: { | ||
| en: "Loop Detected", | ||
| chs: "环路检查" | ||
| } | ||
| }, | ||
| Not_Extended: { | ||
| code: 510, | ||
| message: { | ||
| en: "Not Extended", | ||
| chs: "没有扩展" | ||
| } | ||
| }, | ||
| Network_Authentication_Required: { | ||
| code: 511, | ||
| message: { | ||
| en: "Network Authentication Required", | ||
| chs: "要求网络认证" | ||
| } | ||
| }, | ||
| Network_Connect_Timeout_Error: { | ||
| code: 599, | ||
| message: { | ||
| en: "Network Connect Timeout Error", | ||
| chs: "网络连接超时错误" | ||
| } | ||
| } | ||
| } | ||
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
42329
51.32%473
93.06%