agent: better default response and http codes