Fixed messages not parsing correctly + more

caught IllegalStateException
added APIIllegalStateException
response parsings checked for more errors