#488 Correctly returning 'Invalid url' messages with 400 status code