Return the right HTTP code if the method is not supported
Fix pep8 error
Return some metadata when using HTTP HEAD request