fix exceptions and HTTP status codes in users's api methods