Erroring in case of generation errors in request.
Added generation error handling in ServerResponse.