Custom Status Codes

This sample shows how to define custom status codes for an API endpoint.

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

This sample returns the I am a teapot status code.

Last updated

PowerShell Universal

DownloadsPricingModules

Community

IssuesForums

Copyright 2024 Ironman Software