fixed namespace issue
added HEAD http method
added helper method to set response code