Fixing Error Handler in GET method