def get_course_details(course_id):
if not re.match(COURSE_ID_REGEX, course_id):<EOL><INDENT>raise HttpServerError<EOL><DEDENT>try:<EOL><INDENT>return COURSE_DETAILS[course_id]<EOL><DEDENT>except KeyError:<EOL><INDENT>_raise_client_error(<EOL>"<STR_LIT>".format(course_id), "<STR_LIT>".format(course_id)<EOL>)<EOL><DEDENT>
Fake implementation returning data from the COURSE_DETAILS dictionary.