Throw unknown API error higher.

Do it when reforis#156 (closed) is done.

Edited by Bogdan Bodnar