Adds documentation on success and error response formats.