rectified missing renders due to return wrong error status