Skip to content

Custom status codes handling #430

@konradkar2

Description

@konradkar2

If an endpoint returns a status that does't exist in this map
https://github.com/CrowCpp/Crow/blob/master/include/crow/http_connection.h#L270

the actual returned code is set to 500
https://github.com/CrowCpp/Crow/blob/master/include/crow/http_connection.h#L319

This happens without any warning log (I've checked with debug level).
Imo the easiest solution is to add a warning log to the block that sets it to 500, this would help a lot when debugging.

(I've encountered this when writing UTs, using some arbitrary values)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureCode based project improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions