Added support for quickAuth problems so it builds the necesary JSON to send to client