525 SSL Handshake Failed
Cloudflare specific error. Cloudflare failed to securely negotiate TLS with the origin server.
When and Why to Use It
Section titled “When and Why to Use It”Cloudflare specific error. Cloudflare failed to securely negotiate TLS with the origin server.
Usage Examples
Section titled “Usage Examples”import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => { throw new HttpException('SSL Handshake Failed', 525);});import { Controller, Get, HttpException } from 'shokupan';
@Controller('/api')export class ExampleController { @Get('/resource') getResource() { throw new HttpException('SSL Handshake Failed', 525); }}import express from 'express';const app = express();
app.get('/resource', (req, res) => { res.status(525).json({ error: 'SSL Handshake Failed' });});import { Controller, Get, HttpException } from '@nestjs/common';
@Controller('api')export class ExampleController { @Get('resource') getResource() { throw new HttpException('SSL Handshake Failed', 525); }}import Koa from 'koa';const app = new Koa();
app.use(async ctx => { if (ctx.path === '/resource' && ctx.method === 'GET') { ctx.status = 525; ctx.body = { error: 'SSL Handshake Failed' }; }});