Return more sane error codes and handle an error in cookie value check