move error response logic to concern, user serializer for error response