Search directory endpoint should return 502 error
Steps to reproduce the issue: Contact search directory endpoint with and expired token.
Expected behaviour: Error 401 returned with json
Actual behaviour: Error 502 return with HTMl page
Steps to reproduce the issue: Contact search directory endpoint with and expired token.
Expected behaviour: Error 401 returned with json
Actual behaviour: Error 502 return with HTMl page