Check responsecodes
Use proper check