Skip to content

macros should take a status code as their second argument #227

Open
@yoshuawuyts

Description

@yoshuawuyts

Using ensure! and pals currently always yield a 500 internal server errror. We should make it so that an Into<StatusCode> must always be provided so these actually function as shorthands:

ensure!(tweet.len() < 140, 400, "Tweet must be under 140 characters");

Metadata

Metadata

Assignees

No one assigned

    Labels

    semver-majorThis change requires a semver major change

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions