ticket:388 show error message returned by api on error 500 page