add ability to use custom response error on bad message