MT#7219 API: document http errors of rest api.