Fix bug trying to create RequestError with String instead of Response