methods to handle common errors like unauthorized request, notFound error, etc.
methods to handle common errors like unauthorized request, notFound error, etc.