Python Bottle after_request hook does not provide correct status_code Issue: I have a Bottle application where I raise HTTPResponse in case of an error. Simplified version of the code provided below: Now, when I hit the URL: http://localhost:8080/error I