Better bootstrap, cleanup, HTTP error status codes