Add error handling to "PUT api/v1/categories/:id"