add http response codes, better form integration