Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 342 Bytes

custom-status-codes.md

File metadata and controls

13 lines (10 loc) · 342 Bytes
description
This sample shows how to define custom status codes for an API endpoint.

Custom Status Codes

New-PSUEndpoint -Url '/status' -Endpoint {
    New-PSUApiResponse -StatusCode 418
}

This sample returns the I am a teapot status code.