Using enumeration for HTTP methods