Closed tatterdemalion closed 9 years ago
This is the only way that i found to set the status code for a request.
import pico def teapot(): try: brew_coffee() return "Smells nice!" except TeapotError: raise PicoError("I'm a teapot", status=418)
Makes sense, thanks @tatterdemalion!
This is the only way that i found to set the status code for a request.