#! /usr/bin/env python
-"""Search tags"""
+"""Search tags CGI"""
__author__ = "Oleg Broytman <phd@phdru.name>"
__copyright__ = "Copyright (C) 2014 PhiloSoft Design"
import cgi
from parse_query import parser
+from html.response import response
form = cgi.FieldStorage()
if not form.has_key('q'):
- print "Error"
+ status = "400 Bad request"
+ title = "Error!"
+ body = "Required parameter is missing!"
+
+response(title, body, status)