Lexically scoping the HTTP response. Return errors to user space so they can be handled