Skip to content

207 Multi-Status

Returns an XML document with multiple different status codes for multiple operations performed at once (WebDAV).

Primarily used in WebDAV. Use it when you are performing bulk operations and some succeeded while others failed. You return an XML body detailing the status of every individual operation.

import { HttpCode, get } from 'shokupan';
export const getResource = get('/resource', () => {
return { message: 'Multi-Status' };
}).pipe(HttpCode(207));