Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status function to easily alter the StatusCode of a Response #7

Closed
Badgerati opened this issue May 19, 2018 · 0 comments
Closed

Status function to easily alter the StatusCode of a Response #7

Badgerati opened this issue May 19, 2018 · 0 comments

Comments

@Badgerati
Copy link
Owner

Right now the only way to edit the StatusCode of a response in a route is via:

$session.Response.StatusCode = 200

This update will make it easier via:

# just the status code
status 200

# status code and description
status 200 'some description'
@Badgerati Badgerati added this to the 0.11.0 milestone May 19, 2018
Badgerati added a commit that referenced this issue May 19, 2018
#7: adds ne 'status' function to set reponse status in routes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant