ByteBuffer buf = ByteBuffer.wrap(nothttp.getBytes());
ParserSettings s = new ParserSettings();
s.on_error = new HTTPErrorCallback() {
public void cb (HTTPParser p, String mes, ByteBuffer buf, int pos) {
throw new HTTPException(mes);
}
}; // err callback
HTTPParser p = new HTTPParser();