catch invalid methods for resources