https://github.com/preinboth/status-codes-collection
A comprehensive collection of status codes for HTTP, WebSockets, SMTP, POP3, IMAP, FTP and more. This package provides a central source for all important status codes used in various protocols.
https://github.com/preinboth/status-codes-collection
ftp http imap pop3 smtp status websockets
Last synced: 2 months ago
JSON representation
A comprehensive collection of status codes for HTTP, WebSockets, SMTP, POP3, IMAP, FTP and more. This package provides a central source for all important status codes used in various protocols.
- Host: GitHub
- URL: https://github.com/preinboth/status-codes-collection
- Owner: preinboth
- License: isc
- Created: 2024-08-24T10:05:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T23:27:03.000Z (over 1 year ago)
- Last Synced: 2025-02-21T14:47:36.937Z (about 1 year ago)
- Topics: ftp, http, imap, pop3, smtp, status, websockets
- Language: JavaScript
- Homepage:
- Size: 486 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Status Codes Collection
A comprehensive collection of status codes for HTTP, WebSockets, SMTP, POP3, IMAP, FTP and more. This package provides a central source for all important status codes used in various protocols.
[](LICENSE)
## Installation
To use the package in your project, you can install it via npm or yarn:
```bash
npm install status-codes-collection
yarn add status-codes-collection
```
## Utilisation
You can import and use the status codes directly from the package. Here is a simple example of how you can use the status codes:
```javascript
import { status } from 'status-codes-collection';
console.log(status.HTTP_200_OK); // Should return 200
console.log(status.WS_1000_NORMAL_CLOSURE); // Should return 1000
```
## Available status codes
- HTTP Statuscodes: HTTP_100_CONTINUE, HTTP_200_OK, HTTP_404_NOT_FOUND, etc.
- WebSocket Statuscodes: WS_1000_NORMAL_CLOSURE, WS_1001_GOING_AWAY, etc.
- SMTP Statuscodes: SMTP_220_SERVICE_READY, SMTP_250_REQUEST_COMPLETED, etc.
- POP3 Statuscodes: POP3_OK, POP3_ERROR
- IMAP Statuscodes: IMAP_OK, IMAP_NO, IMAP_BAD, etc.
- FTP Statuscodes: FTP_200_COMMAND_OKAY, FTP_550_REQUESTED_ACTION_NOT_TAKEN, etc.
## Contribution
Contributions are welcome! If you find bugs or want to suggest improvements, please create an issue or a pull request on GitHub.
## Licence
This project is licensed under the MIT licence.