402 error handler and test