530 Origin DNS Error
Cloudflare specific error. Cloudflare couldn’t resolve the DNS record for your origin server.
When and Why to Use It
Section titled “When and Why to Use It”Cloudflare specific error. Cloudflare couldn’t resolve the DNS record for your origin server.
Usage Examples
Section titled “Usage Examples”import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => { throw new HttpException('Origin DNS Error', 530);});import { Controller, Get, HttpException } from 'shokupan';
@Controller('/api')export class ExampleController { @Get('/resource') getResource() { throw new HttpException('Origin DNS Error', 530); }}import express from 'express';const app = express();
app.get('/resource', (req, res) => { res.status(530).json({ error: 'Origin DNS Error' });});import { Controller, Get, HttpException } from '@nestjs/common';
@Controller('api')export class ExampleController { @Get('resource') getResource() { throw new HttpException('Origin DNS Error', 530); }}import Koa from 'koa';const app = new Koa();
app.use(async ctx => { if (ctx.path === '/resource' && ctx.method === 'GET') { ctx.status = 530; ctx.body = { error: 'Origin DNS Error' }; }});