Resource invalid

Resource Invalid was used in api.py but not defined in exceptions