523 Origin Is Unreachable
Cloudflare specific error. Cloudflare could not contact the origin server due to routing issues.
When and Why to Use It
Section titled “When and Why to Use It”Cloudflare specific error. Cloudflare could not contact the origin server due to routing issues.
Usage Examples
Section titled “Usage Examples”import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => { throw new HttpException('Origin Is Unreachable', 523);});import { Controller, Get, HttpException } from 'shokupan';
@Controller('/api')export class ExampleController { @Get('/resource') getResource() { throw new HttpException('Origin Is Unreachable', 523); }}import express from 'express';const app = express();
app.get('/resource', (req, res) => { res.status(523).json({ error: 'Origin Is Unreachable' });});import { Controller, Get, HttpException } from '@nestjs/common';
@Controller('api')export class ExampleController { @Get('resource') getResource() { throw new HttpException('Origin Is Unreachable', 523); }}import Koa from 'koa';const app = new Koa();
app.use(async ctx => { if (ctx.path === '/resource' && ctx.method === 'GET') { ctx.status = 523; ctx.body = { error: 'Origin Is Unreachable' }; }});