fix request typehinting in class method handlers
lazy set debug on error handler