def check_codes(self, expected_codes, received_code, info):
if not any(map(received_code.matches, expected_codes)):<EOL><INDENT>raise errors.StatusCodeError(expected_codes, received_code, info)<EOL><DEDENT>
Checks if any of expected matches received.

:param expected_codes: tuple of expected codes
:type expected_codes: :py:class:`tuple`

:param received_code: received code for matching
:type received_code: :py:class:`aioftp.Code`

:param info: list of response lines from server
:type info: :py:class:`list`

:raises aioftp.StatusCodeError: if received code does not matches any
    expected code