Fix 500 errors for invalid partition
Fixes the error message when an invalid partition is specified.
It used to return a 500 error, but with the latest core code change, it will now return a 4XX code.
Fixes the error message when an invalid partition is specified.
It used to return a 500 error, but with the latest core code change, it will now return a 4XX code.