Document Error Responses are only given as plain strings. Clients may want more specific information about the type of document error, for instance to provide their own translation or to react based by providing the user different kinds of actions (e.g. search for another document). To do so, a list of typical document errors is required. These document error types could be provided for instance by an error code. Document error types, however, would be optional, so clients must also be able to handle general document errors as it is specified now.
Document Error Responses are only given as plain strings. Clients may want more specific information about the type of document error, for instance to provide their own translation or to react based by providing the user different kinds of actions (e.g. search for another document). To do so, a list of typical document errors is required. These document error types could be provided for instance by an error code. Document error types, however, would be optional, so clients must also be able to handle general document errors as it is specified now.