Add error methods for response.

Return error response for delete if deleted or not exists.
Add use statements and docblocks.