Request error handler
Server mockup for tests