Normalized indentation
Fixed missing commas
Return 404, not 500, when item is not found