Handle some errors in REST plugin.