Skip to content

Description for response #135

@LeatherDeerAU

Description

@LeatherDeerAU

I want to get an analog

responses:
    '400':
        desctiprion: "Parse error"

But with code below i just get "Bad request" in description

apiRouting {
    route("example/create") {
        throws(
            HttpStatusCode.BadRequest,
            ExceptionExampleDto("Cannot parse"),
            { ex: Error -> ExceptionExampleDto(ex.message!!) }) {
                ...
       }
}

Is it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions