Skip to content

Problem with headers in error handler #15

Description

@nergal

In current realisation error handler does not consider error type, so http headers in response does not reflect status of processed action.

As example I mean that "not found" action must use 404 status and error action must use 500.

At first, I propose to wrap errors in Response object and extends it by using http status codes (something like Response::setStatus(int $status)).

At second, Bottle_Exception's property "code" shall correlate with status code that current exception must to represent.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions