526 Invalid SSL Certificate
Cloudflare specific error. The SSL certificate on the origin server is invalid, expired, or self-signed.
When and Why to Use It
Section titled “When and Why to Use It”Cloudflare specific error. The SSL certificate on the origin server is invalid, expired, or self-signed.
Usage Examples
Section titled “Usage Examples”import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => { throw new HttpException('Invalid SSL Certificate', 526);});import { Controller, Get, HttpException } from 'shokupan';
@Controller('/api')export class ExampleController { @Get('/resource') getResource() { throw new HttpException('Invalid SSL Certificate', 526); }}import express from 'express';const app = express();
app.get('/resource', (req, res) => { res.status(526).json({ error: 'Invalid SSL Certificate' });});import { Controller, Get, HttpException } from '@nestjs/common';
@Controller('api')export class ExampleController { @Get('resource') getResource() { throw new HttpException('Invalid SSL Certificate', 526); }}import Koa from 'koa';const app = new Koa();
app.use(async ctx => { if (ctx.path === '/resource' && ctx.method === 'GET') { ctx.status = 526; ctx.body = { error: 'Invalid SSL Certificate' }; }});