Write the json content type for API responses

Closes #604
Two thoughts--

Does this type belong in this PR?

If yes, can you generalize this type with the errNotFound type instead of making them distinct types? (e.g., have an httpResponseCode which is 404 for MakeNotFound and 409 (?) for MakeAlreadyExists...