Custom exception class.

Raising a string with no wrapper class is probably considered confusing and bad practice. Fixed it with a custom `class RequestError`.