Handle POSTs expecting a JSON content type + error handling