305 Use Proxy
Deprecated. You must use a specific proxy to access this resource.
When and Why to Use It
Section titled “When and Why to Use It”Do not use this. It is deprecated.
Usage Examples
Section titled “Usage Examples”import { HttpCode, get } from 'shokupan';
export const getResource = get('/resource', () => { return { message: 'Use Proxy' };}).pipe(HttpCode(305));import { Controller, Get, HttpCode } from 'shokupan';
@Controller('/api')export class ExampleController { @Get('/resource') @HttpCode(305) getResource() { return { message: 'Use Proxy' }; }}import express from 'express';const app = express();
app.get('/resource', (req, res) => { res.status(305).json({ message: 'Use Proxy' });});import { Controller, Get, HttpCode } from '@nestjs/common';
@Controller('api')export class ExampleController { @Get('resource') @HttpCode(305) getResource() { return { message: 'Use Proxy' }; }}import Koa from 'koa';const app = new Koa();
app.use(async ctx => { if (ctx.path === '/resource' && ctx.method === 'GET') { ctx.status = 305; ctx.body = { message: 'Use Proxy' }; }});