Check validity of passed HTTP method