Returns 405 when trying to access undefined method