-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor status codes to separate file. Closes #27.
- Loading branch information
1 parent
4bd8be3
commit bf1efea
Showing
2 changed files
with
154 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
export default [ | ||
{ | ||
label: 'Continue', | ||
value: '100' | ||
}, { | ||
label: 'Switching Protocol', | ||
value: '101' | ||
}, { | ||
label: 'OK', | ||
value: '200' | ||
}, { | ||
label: 'Created', | ||
value: '201' | ||
}, { | ||
label: 'Accepted', | ||
value: '202' | ||
}, { | ||
label: 'Non-Authoritative Information', | ||
value: '203' | ||
}, { | ||
label: 'No Content', | ||
value: '204' | ||
}, { | ||
label: 'Reset Content', | ||
value: '205' | ||
}, { | ||
label: 'Partial Content', | ||
value: '206' | ||
}, { | ||
label: 'Multiple Choice', | ||
value: '300' | ||
}, { | ||
label: 'Moved Permanently', | ||
value: '301' | ||
}, { | ||
label: 'Found', | ||
value: '302' | ||
}, { | ||
label: 'See Other', | ||
value: '303' | ||
}, { | ||
label: 'Not Modified', | ||
value: '304' | ||
}, { | ||
label: 'Use Proxy', | ||
value: '305' | ||
}, { | ||
label: 'Temporary Redirect', | ||
value: '307' | ||
}, { | ||
label: 'Permanent Redirect', | ||
value: '308' | ||
}, { | ||
label: 'Bad Request', | ||
value: '400' | ||
}, { | ||
label: 'Unauthorized', | ||
value: '401' | ||
}, { | ||
label: 'Payment Required', | ||
value: '402' | ||
}, { | ||
label: 'Forbidden', | ||
value: '403' | ||
}, { | ||
label: 'Not Found', | ||
value: '404' | ||
}, { | ||
label: 'Method Not Allowed', | ||
value: '405' | ||
}, { | ||
label: 'Not Acceptable', | ||
value: '406' | ||
}, { | ||
label: 'Proxy Authentication Required', | ||
value: '407' | ||
}, { | ||
label: 'Request Timeout', | ||
value: '408' | ||
}, { | ||
label: 'Conflict', | ||
value: '409' | ||
}, { | ||
label: 'Gone', | ||
value: '410' | ||
}, { | ||
label: 'Lenght Required', | ||
value: '411' | ||
}, { | ||
label: 'Precondition Failed', | ||
value: '412' | ||
}, { | ||
label: 'Payload Too Large', | ||
value: '413' | ||
}, { | ||
label: 'URI Too Long', | ||
value: '414' | ||
}, { | ||
label: 'Unsupported Media Type', | ||
value: '415' | ||
}, { | ||
label: 'Requested Range Not Satisfiable', | ||
value: '416' | ||
}, { | ||
label: 'Expectation Failed', | ||
value: '417' | ||
}, { | ||
label: 'I\'m a teapot', | ||
value: '418' | ||
}, { | ||
label: 'Misdirected Request', | ||
value: '421' | ||
}, { | ||
label: 'Upgrade Required', | ||
value: '426' | ||
}, { | ||
label: 'Precondition Required', | ||
value: '428' | ||
}, { | ||
label: 'Too Many Requests', | ||
value: '429' | ||
}, { | ||
label: 'Request Header Fields Too Large', | ||
value: '431' | ||
}, { | ||
label: 'Internal Server Error', | ||
value: '500' | ||
}, { | ||
label: 'Not Implemented', | ||
value: '501' | ||
}, { | ||
label: 'Service Unavailable', | ||
value: '502' | ||
}, { | ||
label: 'Gateway Timeout', | ||
value: '504' | ||
}, { | ||
label: 'HTTP Version Not Supported', | ||
value: '505' | ||
}, { | ||
label: 'Variant Also Negotiates', | ||
value: '506' | ||
}, { | ||
label: 'Variant Also Negotiates', | ||
value: '507' | ||
}, { | ||
label: 'Network Authentication Required', | ||
value: '511' | ||
} | ||
]; |