working with errors and server request