Controller actions add and edit return nos 200 for ok, and 500 + json errors for not-ok