common: handle unknown api errors.
Merge pull request #203 from stephenplusplus/error-responses

common: handle unknown api errors.