Added exception handling for 400 errors. Added error checking for nargs.

Do you even use this? :P
Since you need one argument to do anything you should throw an error if there isn't at least one instead of doing nothing.