Few more lines of comments
http: return the proper status code on error
http: use the status code returned by the page renderer
Move the Mirror structure in its own file

... and all of its methods.
commands: remove a superfluous new line