Fix EZP-21660: The JS REST client does not throw error, when trying to access non-existent route
Misc fixes according to review