API Error thrown when European Parliament API requests fail.
throw new APIError('EP API request failed: Not Found', 404, { endpoint: '/meps/999999' }); Copy
throw new APIError('EP API request failed: Not Found', 404, { endpoint: '/meps/999999' });
Optional
API Error thrown when European Parliament API requests fail.
Example