Also, improve error reporting and add more tests for invalid requests. Fixes #7 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>