This repo includes example of testing the http server using golang. In module client_test.go you can find various tests for method find_users in module client.go.
Method find_users makes a GET request to server with handler SearchServer. In this handler you can find examples of different status errors, including TimeOut, Unauthorized, InternalServerError and others.
Welcome!