# Getting unauthorized exception in SAP ABAP

To fix this issue, you need to add try/catch response to the code. When you don’t include an authorization header, it results in an error 401 from the server.

try {
CatalogService.CatalogChangeClient service =
new CatalogService.CatalogChangeClient();
}