# 500

> Generate 500 response errors.

Latest version **0.0.0** (published 2015-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install 500
pnpm add 500
yarn add 500
bun add 500
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2015-08-11 |
| First published | 2015-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arnout Kazemier |
| Maintainers | 3rdeden |
| Keywords | 500, internal, server, error |

## Links

- npm: https://www.npmjs.com/package/500
- Repository: https://github.com/3rd-Eden/500
- Homepage: https://github.com/3rd-Eden/500#readme
- Issues: https://github.com/3rd-Eden/500/issues
- npm.io page: https://npm.io/package/500

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.0.0 (latest) — 2015-08-11

## README

# 500

Easily generate 500 HTTP responses. I found my self writing this logic over and
over again, so it's extracted out in to a module.

## Installation

```
npm install --save 500
```

## Usage

```js
'use strict';

var fivehundered = require('500')
  , http = require('http');

var server = http.createServer(function (req, res) {
  res.statusCode = 200;

  if (Math.random()) return fivehundered('Server failed because of reasons');
  else if (Math.random()) return fivehundered(new Error('Random error'));

  res.end('hello world');
}).listen(8080);
```

## License

MIT

---
_Source: https://npm.io/package/500 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
